protected final void setInt(long offset, int l) { checkPosition(offset, 4); MemoryUtil.setInt(peer + offset, l); }
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, ByteBuffer key) { super(token); assert key != null; assert key.order() == ByteOrder.BIG_ENDIAN; int size = key.remaining(); this.peer = allocator.allocate(4 + size, writeOp); MemoryUtil.setInt(peer, size); MemoryUtil.setBytes(peer + 4, key); }
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, ByteBuffer key) { super(token); assert key != null; assert key.order() == ByteOrder.BIG_ENDIAN; int size = key.remaining(); this.peer = allocator.allocate(4 + size, writeOp); MemoryUtil.setInt(peer, size); MemoryUtil.setBytes(peer + 4, key); }
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, ByteBuffer key) { super(token); assert key != null; assert key.order() == ByteOrder.BIG_ENDIAN; int size = key.remaining(); this.peer = allocator.allocate(4 + size, writeOp); MemoryUtil.setInt(peer, size); MemoryUtil.setBytes(peer + 4, key); }
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, ByteBuffer key) { super(token); assert key != null; assert key.order() == ByteOrder.BIG_ENDIAN; int size = key.remaining(); this.peer = allocator.allocate(4 + size, writeOp); MemoryUtil.setInt(peer, size); MemoryUtil.setBytes(peer + 4, key); }
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, ByteBuffer key) { super(token); assert key != null; int size = key.remaining(); this.peer = allocator.allocate(4 + size, writeOp); MemoryUtil.setInt(peer, size); MemoryUtil.setBytes(peer + 4, key); }
public AbstractNativeCell(NativeAllocator allocator, OpOrder.Group writeOp, Cell copyOf) { int size = sizeOf(copyOf); peer = allocator.allocate(size, writeOp); MemoryUtil.setInt(peer, size); construct(copyOf); }
MemoryUtil.setByte(peer + HAS_CELLPATH, (byte)(path == null ? 0 : 1)); MemoryUtil.setLong(peer + TIMESTAMP, timestamp); MemoryUtil.setInt(peer + TTL, ttl); MemoryUtil.setInt(peer + DELETION, localDeletionTime); MemoryUtil.setInt(peer + LENGTH, value.remaining()); MemoryUtil.setBytes(peer + VALUE, value); MemoryUtil.setInt(offset, pathbuffer.remaining()); MemoryUtil.setBytes(offset + 4, pathbuffer);
MemoryUtil.setByte(peer + HAS_CELLPATH, (byte)(path == null ? 0 : 1)); MemoryUtil.setLong(peer + TIMESTAMP, timestamp); MemoryUtil.setInt(peer + TTL, ttl); MemoryUtil.setInt(peer + DELETION, localDeletionTime); MemoryUtil.setInt(peer + LENGTH, value.remaining()); MemoryUtil.setBytes(peer + VALUE, value); MemoryUtil.setInt(offset, pathbuffer.remaining()); MemoryUtil.setBytes(offset + 4, pathbuffer);
MemoryUtil.setByte(peer + HAS_CELLPATH, (byte)(path == null ? 0 : 1)); MemoryUtil.setLong(peer + TIMESTAMP, timestamp); MemoryUtil.setInt(peer + TTL, ttl); MemoryUtil.setInt(peer + DELETION, localDeletionTime); MemoryUtil.setInt(peer + LENGTH, value.remaining()); MemoryUtil.setBytes(peer + VALUE, value); MemoryUtil.setInt(offset, pathbuffer.remaining()); MemoryUtil.setBytes(offset + 4, pathbuffer);
MemoryUtil.setByte(peer + HAS_CELLPATH, (byte)(path == null ? 0 : 1)); MemoryUtil.setLong(peer + TIMESTAMP, timestamp); MemoryUtil.setInt(peer + TTL, ttl); MemoryUtil.setInt(peer + DELETION, localDeletionTime); MemoryUtil.setInt(peer + LENGTH, value.remaining()); MemoryUtil.setBytes(peer + VALUE, value); MemoryUtil.setInt(offset, pathbuffer.remaining()); MemoryUtil.setBytes(offset + 4, pathbuffer);