public final class ByteArrayAccessStrategy extends Object implements ByteAccessStrategy<byte[]>
ByteAccessStrategy
for Java byte arrays.Modifier and Type | Field and Description |
---|---|
static ByteArrayAccessStrategy |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
byte |
getByte(byte[] array,
long offset)
Return byte from external resource
|
void |
putByte(byte[] array,
long offset,
byte x)
Writes byte to corresponding resource
|
public static final ByteArrayAccessStrategy INSTANCE
public byte getByte(byte[] array, long offset)
ByteAccessStrategy
getByte
in interface ByteAccessStrategy<byte[]>
array
- - resource to accessoffset
- - offset of bytepublic void putByte(byte[] array, long offset, byte x)
ByteAccessStrategy
putByte
in interface ByteAccessStrategy<byte[]>
array
- - resource to accessoffset
- - offset of bytex
- - byte to writeCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.