envzn
0.8 · beta · not released

Library / System / Codecs / ByteOrderCodec

CLASS

ByteOrderCodec

Methods 12

METHOD toBytes(int32 n, Endianness endian) RETURNS ByteBuffer
reads
METHOD toBytes(int64 n, Endianness endian) RETURNS ByteBuffer
reads
METHOD toBytes(uint32 n, Endianness endian) RETURNS ByteBuffer
reads
METHOD toBytes(uint64 n, Endianness endian) RETURNS ByteBuffer
reads
METHOD toBytes(float32 n, Endianness endian) RETURNS ByteBuffer
reads

Float -> bytes: IEEE-754 bit pattern via a bound shim, then packed by the same pure-Envzn endian helper the integer overloads use.

METHOD toBytes(float64 n, Endianness endian) RETURNS ByteBuffer
reads
METHOD toInt32(REFERENCE ByteBuffer bb, Endianness endian) RETURNS | int32
reads
METHOD toInt64(REFERENCE ByteBuffer bb, Endianness endian) RETURNS | int64
reads
METHOD toUInt32(REFERENCE ByteBuffer bb, Endianness endian) RETURNS | uint32
reads
METHOD toUInt64(REFERENCE ByteBuffer bb, Endianness endian) RETURNS | uint64
reads
METHOD toFloat32(REFERENCE ByteBuffer bb, Endianness endian) RETURNS | float32
reads

Bytes -> float: integer bit pattern assembled in pure Envzn, then a bound shim reinterprets it as IEEE-754.

METHOD toFloat64(REFERENCE ByteBuffer bb, Endianness endian) RETURNS | float64
reads