in src/main/java/org/apache/datasketches/memory/WritableBuffer.java [153:167]
WritableBuffer writableRegion(
long offsetBytes,
long capacityBytes,
ByteOrder byteOrder);
//AS WRITABLE MEMORY
/**
* Convert this WritableBuffer to a WritableMemory.
* If this object's capacity is zero, the returned object is effectively immutable and
* the backing storage and byte order are unspecified.
* @return WritableMemory
*/
default WritableMemory asWritableMemory() {
return asWritableMemory(ByteOrder.nativeOrder());
}