Constructor

new(b:Bytes, ?pos:Int, ?len:Int)

Methods

Inherited Variables

Defined by Input

read onlybigEndian:Bool

Endianness (word byte order) used when reading numbers.

If true, big-endian is used, otherwise little-endian is used.

Inherited Methods

Defined by Input

read(nbytes:Int):Bytes

Read and return nbytes bytes.

readFullBytes(s:Bytes, pos:Int, len:Int):Void

Read len bytes and write them into s to the position specified by pos.

Unlike readBytes, this method tries to read the exact len amount of bytes.

readInt16():Int

Read a 16-bit signed integer.

Endianness is specified by the bigEndian property.

readInt32():Int

Read a 32-bit signed integer.

Endianness is specified by the bigEndian property.

readString(len:Int, ?encoding:Encoding):String

Read and len bytes as a string.

readUInt16():Int

Read a 16-bit unsigned integer.

Endianness is specified by the bigEndian property.