private static int getValueSize(Slice slice, int offset) { return slice.getInt(offset); }
private static int getVariableBinaryLength(Slice slice, int offset) { // INT here is the length and the BYTE is the null flag return slice.getInt(offset + SIZE_OF_BYTE) - SIZE_OF_INT - SIZE_OF_BYTE; }