| Modifier and Type | Method and Description |
|---|---|
static WritableMemory |
WritableMemory.allocate(int capacityBytes)
Creates on-heap WritableMemory with the given capacity and the native byte order.
|
static WritableMemory |
WritableMemory.allocate(int capacityBytes,
ByteOrder byteOrder)
Creates on-heap WritableMemory with the given capacity and the given byte order.
|
abstract WritableMemory |
WritableBuffer.asWritableMemory()
Convert this WritableBuffer to a WritableMemory.
|
WritableMemory |
WritableHandle.get()
Gets a WritableMemory
|
WritableMemory |
WritableMapHandle.get() |
WritableMemory |
WritableDirectHandle.get() |
WritableMemory |
DefaultMemoryRequestServer.request(long capacityBytes)
Request new WritableMemory with the given capacity.
|
WritableMemory |
MemoryRequestServer.request(long capacityBytes)
Request new WritableMemory with the given capacity.
|
static WritableMemory |
WritableMemory.wrap(boolean[] arr)
Wraps the given primitive array for write operations assuming native byte order.
|
static WritableMemory |
WritableMemory.wrap(byte[] arr)
Wraps the given primitive array for write operations assuming native byte order.
|
static WritableMemory |
WritableMemory.wrap(byte[] arr,
ByteOrder byteOrder)
Wraps the given primitive array for write operations with the given byte order.
|
static WritableMemory |
WritableMemory.wrap(byte[] arr,
int offsetBytes,
int lengthBytes,
ByteOrder byteOrder)
Wraps the given primitive array for write operations with the given byte order.
|
static WritableMemory |
WritableMemory.wrap(ByteBuffer byteBuf)
Accesses the given ByteBuffer for write operations.
|
static WritableMemory |
WritableMemory.wrap(ByteBuffer byteBuf,
ByteOrder byteOrder)
Accesses the given ByteBuffer for write operations.
|
static WritableMemory |
WritableMemory.wrap(char[] arr)
Wraps the given primitive array for write operations assuming native byte order.
|
static WritableMemory |
WritableMemory.wrap(double[] arr)
Wraps the given primitive array for write operations assuming native byte order.
|
static WritableMemory |
WritableMemory.wrap(float[] arr)
Wraps the given primitive array for write operations assuming native byte order.
|
static WritableMemory |
WritableMemory.wrap(int[] arr)
Wraps the given primitive array for write operations assuming native byte order.
|
static WritableMemory |
WritableMemory.wrap(long[] arr)
Wraps the given primitive array for write operations assuming native byte order.
|
static WritableMemory |
WritableMemory.wrap(short[] arr)
Wraps the given primitive array for write operations assuming native byte order.
|
abstract WritableMemory |
WritableMemory.writableRegion(long offsetBytes,
long capacityBytes)
A writable region is a writable view of this object.
|
abstract WritableMemory |
WritableMemory.writableRegion(long offsetBytes,
long capacityBytes,
ByteOrder byteOrder)
A writable region is a writable view of this object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Memory.copyTo(long srcOffsetBytes,
WritableMemory destination,
long dstOffsetBytes,
long lengthBytes)
Copies bytes from a source range of this Memory to a destination range of the given Memory
with the same semantics when copying between overlapping ranges of bytes as method
System.arraycopy(Object, int, Object, int, int) has. |
void |
DefaultMemoryRequestServer.requestClose(WritableMemory memToRelease,
WritableMemory newMemory)
Request close the AutoCloseable resource.
|
void |
MemoryRequestServer.requestClose(WritableMemory memToClose,
WritableMemory newMemory)
Request close the AutoCloseable resource.
|
Copyright © 2015–2019 Yahoo! Inc.. All rights reserved.