private static ByteBuffer wrapCalculatedValue(ByteBuffer buffer){
  ByteBuffer newBuf=prepareWrappedCalcValue(buffer.remaining(),buffer.order());
  newBuf.put(buffer);
  newBuf.rewind();
  return newBuf;
}

private static ByteBuffer wrapCalculatedValue ( ByteBuffer buffer ) { ByteBuffer newBuf = prepareWrappedCalcValue ( buffer . remaining ( ) , buffer . order ( ) ) ; newBuf . put ( buffer ) ; newBuf . rewind ( ) ; return newBuf ; }
wraps the given data bytes with the extra calculated value data and returns a new bytebuffer containing the final data .
