public abstract class WrappedValueBytesDataAccess<K,V,R> extends Object implements MapContext<K,V,R>
| Constructor and Description |
|---|
WrappedValueBytesDataAccess() |
| Modifier and Type | Method and Description |
|---|---|
Data<V> |
wrapValueBytesAsData(net.openhft.chronicle.bytes.BytesStore<?,?> bytesStore,
long offset,
long size)
Wraps the given value bytes as a
Data. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithash, map, wrapValueAsDatasetinsert, removeinsert, remove, replaceValuedefaultValuepublic Data<V> wrapValueBytesAsData(net.openhft.chronicle.bytes.BytesStore<?,?> bytesStore, long offset, long size)
MapContextData. Useful when you need to pass a value
to some method accepting Data, for example, MapEntryOperations.replaceValue(
MapEntry, Data), without allocating manual deserialization and ThreadLocals.
The returned Data object shouldn't outlive this MapContext.
wrapValueBytesAsData in interface MapContext<K,V,R>bytesStore - the value bytes to wrapoffset - offset within the given valueBytes, the actual value bytes start fromsize - length of the value bytes sequenceDataCopyright © 2024. All rights reserved.