public class CrtByteBuffer extends CrtResource
Modifier and Type | Method and Description |
---|---|
static CrtByteBuffer |
alloc(int size) |
void |
close() |
ByteBuffer |
getBuffer() |
void |
releaseBackToPool() |
void |
wipe()
Zero's out this Buffers Memory, and resets it's position and limit.
|
protected CrtByteBuffer |
withPool(CrtBufferPool pool) |
acquire, getAllocatedNativeResourceCount, getAllocatedNativeResources, isNull, native_ptr, own, release
public static CrtByteBuffer alloc(int size)
public void releaseBackToPool()
public ByteBuffer getBuffer()
public void wipe()
public void close()
close
in interface AutoCloseable
close
in class CrtResource
protected CrtByteBuffer withPool(CrtBufferPool pool)
Copyright © 2019. All rights reserved.