protected final byte getByte(long offset) { checkPosition(offset, 1); return MemoryUtil.getByte(peer + offset); }
public CellPath path() { if (MemoryUtil.getByte(peer+ HAS_CELLPATH) == 0) return null; long offset = peer + VALUE + MemoryUtil.getInt(peer + LENGTH); int size = MemoryUtil.getInt(offset); return CellPath.create(MemoryUtil.getByteBuffer(offset + 4, size, ByteOrder.BIG_ENDIAN)); }
public CellPath path() { if (MemoryUtil.getByte(peer+ HAS_CELLPATH) == 0) return null; long offset = peer + VALUE + MemoryUtil.getInt(peer + LENGTH); int size = MemoryUtil.getInt(offset); return CellPath.create(MemoryUtil.getByteBuffer(offset + 4, size, ByteOrder.BIG_ENDIAN)); }
int b = MemoryUtil.getByte(boffset); b |= 1 << (i & 7); MemoryUtil.setByte(boffset, (byte) b);
public CellPath path() { if (MemoryUtil.getByte(peer+ HAS_CELLPATH) == 0) return null; long offset = peer + VALUE + MemoryUtil.getInt(peer + LENGTH); int size = MemoryUtil.getInt(offset); return CellPath.create(MemoryUtil.getByteBuffer(offset + 4, size, ByteOrder.BIG_ENDIAN)); }
int b = MemoryUtil.getByte(boffset); b |= 1 << (i & 7); MemoryUtil.setByte(boffset, (byte) b);
public CellPath path() { if (MemoryUtil.getByte(peer+ HAS_CELLPATH) == 0) return null; long offset = peer + VALUE + MemoryUtil.getInt(peer + LENGTH); int size = MemoryUtil.getInt(offset); return CellPath.create(MemoryUtil.getByteBuffer(offset + 4, size, ByteOrder.BIG_ENDIAN)); }
int b = MemoryUtil.getByte(boffset); b |= 1 << (i & 7); MemoryUtil.setByte(boffset, (byte) b);
public ByteBuffer get(int i) { // offset at which we store the dataOffset int size = size(); if (i >= size) throw new IndexOutOfBoundsException(); int metadataSize = (size * 2) + 4; int bitmapSize = ((size + 7) >>> 3); long bitmapStart = peer + metadataSize; int b = MemoryUtil.getByte(bitmapStart + (i >>> 3)); if ((b & (1 << (i & 7))) != 0) return null; int startOffset = MemoryUtil.getShort(peer + 2 + i * 2); int endOffset = MemoryUtil.getShort(peer + 4 + i * 2); return MemoryUtil.getByteBuffer(bitmapStart + bitmapSize + startOffset, endOffset - startOffset, ByteOrder.BIG_ENDIAN); }
int b = MemoryUtil.getByte(boffset); b |= 1 << (i & 7); MemoryUtil.setByte(boffset, (byte) b);
public ByteBuffer get(int i) { // offset at which we store the dataOffset int size = size(); if (i >= size) throw new IndexOutOfBoundsException(); int metadataSize = (size * 2) + 4; int bitmapSize = ((size + 7) >>> 3); long bitmapStart = peer + metadataSize; int b = MemoryUtil.getByte(bitmapStart + (i >>> 3)); if ((b & (1 << (i & 7))) != 0) return null; int startOffset = MemoryUtil.getShort(peer + 2 + i * 2); int endOffset = MemoryUtil.getShort(peer + 4 + i * 2); return MemoryUtil.getByteBuffer(bitmapStart + bitmapSize + startOffset, endOffset - startOffset, ByteOrder.BIG_ENDIAN); }
public ByteBuffer get(int i) { // offset at which we store the dataOffset int size = size(); if (i >= size) throw new IndexOutOfBoundsException(); int metadataSize = (size * 2) + 4; int bitmapSize = ((size + 7) >>> 3); long bitmapStart = peer + metadataSize; int b = MemoryUtil.getByte(bitmapStart + (i >>> 3)); if ((b & (1 << (i & 7))) != 0) return null; int startOffset = MemoryUtil.getShort(peer + 2 + i * 2); int endOffset = MemoryUtil.getShort(peer + 4 + i * 2); return MemoryUtil.getByteBuffer(bitmapStart + bitmapSize + startOffset, endOffset - startOffset, ByteOrder.BIG_ENDIAN); }
public ByteBuffer get(int i) { // offset at which we store the dataOffset int size = size(); if (i >= size) throw new IndexOutOfBoundsException(); int metadataSize = (size * 2) + 4; int bitmapSize = ((size + 7) >>> 3); long bitmapStart = peer + metadataSize; int b = MemoryUtil.getByte(bitmapStart + (i >>> 3)); if ((b & (1 << (i & 7))) != 0) return null; int startOffset = MemoryUtil.getShort(peer + 2 + i * 2); int endOffset = MemoryUtil.getShort(peer + 4 + i * 2); return MemoryUtil.getByteBuffer(bitmapStart + bitmapSize + startOffset, endOffset - startOffset, ByteOrder.BIG_ENDIAN); }