LByteBuffer class

A byte buffer that wraps a list of bytes.

Simplifies access to data.

Constructors

LByteBuffer(int size, {bool readOnly = false, bool doSigned = false})
LByteBuffer.fromData(List data, {bool readOnly = false, bool doSigned = false})

Properties

capacity int
read-only
doSigned bool
final
endian Endian
write-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isReadOnly bool
read-only
limit int
read / write
position int
read / write
readOnly bool
final
remaining int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clear() → void
compact() → void
flip() → void
get(int length) List<int>
getByte() int
getByteChar() String
getDouble32() double
getDouble64() double
getInt32() int
mark() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
put(LByteBuffer buffer) → void
Put a buffer into this buffer, considering the current position and remaining bytes.
putDouble64(double num) → void
putInt32(int num) → void
reset() → void
rewind() → void
set(List<int> read) → void
skip(int bytesToSkip) → void
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited