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