ByteBuffer class

Dart implementation of Java's ByteBuffer

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

array() → Uint8List
Returns a copy of the backing array
capacity() → int
Returns this buffer's capacity
get(Uint8List dst) → ByteBuffer
Gets bytes from the buffer into the destination array
get_() → int
Gets a single byte from the buffer
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
order(ByteOrder order) → ByteBuffer
Sets this buffer's byte order
position([int? newPosition]) → dynamic
Sets or gets this buffer's position
put(dynamic input, [int offset = 0, int? length]) → ByteBuffer
Writes a byte or bytes into this buffer
putInt(int value) → ByteBuffer
Writes an integer into this buffer
rewind() → ByteBuffer
Rewinds this buffer. Sets the position to zero
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

allocate(int capacity) → ByteBuffer
Creates a new ByteBuffer with the given capacity
wrap(Uint8List array) → ByteBuffer
Creates a new ByteBuffer that wraps the given array