private static byte[] unwrapCalculatedValue(byte[] data){
  if (data.length < CALC_DATA_OFFSET) {
    return data;
  }
  ByteBuffer buffer=PageChannel.wrap(data);
  buffer.position(CALC_DATA_LEN_OFFSET);
  int dataLen=buffer.getInt();
  byte[] newData=new byte[Math.min(buffer.remaining(),dataLen)];
  buffer.get(newData);
  return newData;
}

private static byte [ ] unwrapCalculatedValue ( byte [ ] data ) { if ( data . length < CALC_DATA_OFFSET ) { return data ; } ByteBuffer buffer = PageChannel . wrap ( data ) ; buffer . position ( CALC_DATA_LEN_OFFSET ) ; int dataLen = buffer . getInt ( ) ; byte [ ] newData = new byte [ Math . min ( buffer . remaining ( ) , dataLen ) ] ; buffer . get ( newData ) ; return newData ; }
grabs the real data bytes from a calculated value .
