예제 #1
0
 private static int getValueSize(Slice slice, int offset) {
   return slice.getInt(offset);
 }
예제 #2
0
 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;
 }