@SuppressWarnings("NonSynchronizedMethodOverridesSynchronizedMethod") @Override public void reset() { bytes.position(mark); }
@SuppressWarnings("NonSynchronizedMethodOverridesSynchronizedMethod") @Override public void mark(int readLimit) { mark = bytes.position(); }
@SuppressWarnings("NonSynchronizedMethodOverridesSynchronizedMethod") @Override public void mark(int readLimit) { mark = bytes.position(); }
@SuppressWarnings("NonSynchronizedMethodOverridesSynchronizedMethod") @Override public void reset() { bytes.position(mark); }
public long position() { return wrapped.position(); }
public long position() { return wrapped.position(); }
@Override public void writeSerializable(Bytes bytes, Object object, Class expectedClass) throws IOException { // reset the finished flag and append long position = bytes.position(); bytes.clear(); bytes.position(position + 4); OutputStream out = bytes.outputStream(); ObjectOutputStream oos = new ObjectOutputStream(new DeflaterOutputStream(out)); oos.writeObject(object); oos.close(); long length = bytes.position() - position - 4; bytes.writeUnsignedInt(position, length); }
public long position() { this.checkNotClosed(); return this.bytes.position(); }
public Bytes position(long position) { this.checkNotClosed(); return this.bytes.position(position); }
public Bytes position(long position) { this.checkNotClosed(); return this.bytes.position(position); }
public long position() { this.checkNotClosed(); return this.bytes.position(); }
@Override public void writeSerializable(Bytes bytes, Object object, Class expectedClass) throws IOException { // reset the finished flag and append long position = bytes.position(); bytes.clear(); bytes.position(position + 4); OutputStream out = bytes.outputStream(); ObjectOutputStream oos = new ObjectOutputStream(new DeflaterOutputStream(out)); oos.writeObject(object); oos.close(); long length = bytes.position() - position - 4; bytes.writeUnsignedInt(position, length); }
public void put(@NotNull final BytesStore key, @NotNull final BytesStore value, final byte remoteIdentifier, final long timestamp) { // assert key.refCount() == 1; // assert value.refCount()== 1; final KvLangBytes kv = kvByte.get(); @NotNull net.openhft.lang.io.Bytes keyBytes = toLangBytes(key, kv.tmpKeyBytes, kv.key); @NotNull net.openhft.lang.io.Bytes valueBytes = toLangBytes(value, kv.tmpValueBytes, kv.value); engineReplicationLang.put(keyBytes, valueBytes, remoteIdentifier, timestamp); keyBytes.position(0); valueBytes.position(0); }
@Override public long hash(Bytes bytes) { return hash(bytes, bytes.position(), bytes.limit()); } }
@Override public long hash(Bytes bytes) { return hash(bytes, bytes.position(), bytes.limit()); } }
public long hash(Bytes bytes) { return hash(bytes, bytes.position(), bytes.limit()); }