On Tue, Sep 10, 2002 at 06:01:23PM +0200, Peter Gibbs wrote:
> Attached is a sample implementation of a minor subset of
> pack/unpack functionality. Code is not optimised in any way,
> and error checking is basically non-existent.
> 
> Opcodes are:
>     convert Sx, Iy, Iz   - pack integer Iy into string Sx per type Iz
>     convert Ix, Sy, Iz   - unpack integer Ix from string Sy per type Iz
> 
> Currently supported types are:
>     0 = 8-bit
>     1 = 16-bit little-endian
>     2 = 16-bit big-endian
>     3 = 32-bit little-endian
>     4 = 32-bit big-endian

As well as supporting big/little endian specifically, should we support "native"
ie packed in the same endian as the machine the code is being run on.

Graham.

Reply via email to