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<int> data, {bool readOnly = false, bool doSigned = false})

Properties

capacity int
no setter
doSigned bool
final
endian Endian
no getter
hashCode int
The hash code for this object.
no setterinherited
isReadOnly bool
no setter
limit int
getter/setter pair
position int
getter/setter pair
readOnly bool
final
remaining int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent 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