public final class ByteBufferAccessStrategy extends Object implements ByteAccessStrategy<ByteBuffer>
| Modifier and Type | Field and Description |
|---|---|
static ByteBufferAccessStrategy |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
byte |
getByte(ByteBuffer resource,
long offset)
Return byte from external resource
|
void |
putByte(ByteBuffer resource,
long offset,
byte value)
Writes byte to corresponding resource
|
public static final ByteBufferAccessStrategy INSTANCE
public byte getByte(ByteBuffer resource, long offset)
ByteAccessStrategygetByte in interface ByteAccessStrategy<ByteBuffer>resource - - resource to accessoffset - - offset of bytepublic void putByte(ByteBuffer resource, long offset, byte value)
ByteAccessStrategyputByte in interface ByteAccessStrategy<ByteBuffer>resource - - resource to accessoffset - - offset of bytevalue - - byte to writeCopyright © 2019 Hazelcast, Inc.. All rights reserved.