public final class CustomByteAccessStrategy extends Object implements ByteAccessStrategy<MemoryAccessor>
ByteAccessStrategy
that works with a MemoryAccessor
.Modifier and Type | Field and Description |
---|---|
static CustomByteAccessStrategy |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
byte |
getByte(MemoryAccessor mem,
long offset)
Return byte from external resource
|
void |
putByte(MemoryAccessor mem,
long offset,
byte value)
Writes byte to corresponding resource
|
public static final CustomByteAccessStrategy INSTANCE
public byte getByte(MemoryAccessor mem, long offset)
ByteAccessStrategy
getByte
in interface ByteAccessStrategy<MemoryAccessor>
mem
- - resource to accessoffset
- - offset of bytepublic void putByte(MemoryAccessor mem, long offset, byte value)
ByteAccessStrategy
putByte
in interface ByteAccessStrategy<MemoryAccessor>
mem
- - resource to accessoffset
- - offset of bytevalue
- - byte to writeCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.