mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
PrepareValueBytes imporovements and documentations [documentation campaign]
This commit is contained in:
@@ -18,7 +18,7 @@ package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.lang.io.Bytes;
|
||||
|
||||
final class ZeroOutValueBytes<K> implements PrepareValueBytes<K> {
|
||||
final class ZeroOutValueBytes<K, V> implements PrepareValueBytes<K, V> {
|
||||
private static final long serialVersionUID = 0L;
|
||||
private final long valueSize;
|
||||
|
||||
@@ -30,5 +30,6 @@ final class ZeroOutValueBytes<K> implements PrepareValueBytes<K> {
|
||||
public void prepare(Bytes bytes, K key) {
|
||||
long pos = bytes.position();
|
||||
bytes.zeroOut(pos, pos + valueSize);
|
||||
bytes.skip(valueSize);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user