DirectByteBuffer class
Stands for 'java/nio/DirectByteBuffer' in java. It's a more efficient way to use jni method direct get buffer info and create buffer.
JNI Interface: NewDirectByteBuffer
, GetDirectBufferAddress
, GetDirectBufferCapacity
Constructors
-
DirectByteBuffer(Pointer<
Void> bytes, int lengthInBytes) -
DirectByteBuffer.fromPointer(Pointer<
Void> pointer)
Properties
-
bytes
↔ Pointer<
Void> -
Returns a pointer to a contiguous region of memory managed by this object.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- lengthInBytes ↔ int
-
Returns the length of this object, in bytes.
getter/setter pair
-
pointer
→ Pointer<
Void> -
Pointer of native object.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited