ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-core
tcl-core
[TCLCORE] TIP #317: Extend binary Ensemble with Binary Encodings
by Donal K. Fellows other posts by this author
May 3 2008 6:26AM messages near this date
Re: [TCLCORE] Pre-CFV: TIP#257 | Re: [TCLCORE] TIP #317: Extend binary Ensemble with Binary Encodings
TIP #317: EXTEND BINARY ENSEMBLE WITH BINARY ENCODINGS
========================================================
  Version:      $Revision: 1.1 $
  Author:       Pat Thoyts <patthoyts_at_users.sourceforge.net> 
  State:        Draft
  Type:         Project
  Tcl-Version:  8.6
  Vote:         Pending
  Created:      Saturday, 03 May 2008
  URL:          http://www.tcl.tk/cgi-bin/tct/tip/317.html
  Post-History:

-------------------------------------------------------------------------

  ABSTRACT
==========

  This TIP extends the *binary* command with implementations in C of
  commonly used binary encodings. In particular the /base64/ encoding is
  implemented but the Tcl ensemble scheme [TIP #112] can be used to
  provide simple extension of the implemented formats.

  SPECIFICATION
===============

  The *binary* command ensemble will be extended to include two new
  subcommands, *encode* and *decode*. Each subcommand will accept two
  arguments. The first is the name of an encoding format and the second
  is the data to be operated upon.

        *binary encode* /format data/

        *binary decode* /format data/

  In keeping with the nature of the *binary* command, the /data/ argument
  is treated as a byte array. This means that users should ensure their
  data is already in a suitable character encoding before applying a
  binary encoding. This is already a requirement for other
  implementations of this functionality (e.g. the tcllib and Trf
  packages).

  The initial set of binary encodings consists of *base64*, *uuencode*
  and *hex*. The implementation of the *encode* and *decode* subcommands
  will make use of the Tcl ensemble command mechanism ([TIP #112]) and
  will therefore be extensible via the ensemble mechanism.

  REFERENCE IMPLEMENTATION
==========================

  A patch against the Tcl HEAD (8.6) is located at
 
<URL:http://sf.net/tracker/?func=detail&aid=1956530&group_id=10894&atid=310894>  


  COPYRIGHT
===========

  This document has been placed in the public domain.

-------------------------------------------------------------------------

  TIP AutoGenerator - written by Donal K. Fellows

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Donal K. Fellows
Lars Hellstrom
Pat Thoyts
Donal K. Fellows
Kevin Kenny
Donal K. Fellows
Pat Thoyts
Lars Hellstrom

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved