DirectByteBuffer constructor
Implementation
DirectByteBuffer(this.bytes, this.lengthInBytes) {
if (bytes == nullptr || lengthInBytes == 0) {
_ptr = nullptr;
return;
}
_ptr = _newDirectByteBuffer(bytes, lengthInBytes);
bindLifeCycleWithJava(_ptr);
}