@ Nonnull @ ReturnsMutableCopy public byte [ ] getAsByteArray ( ) { final byte [ ] aArray = m_aBuffer . array ( ) ; final int nOfs = m_aBuffer . arrayOffset ( ) ; final int nLength = m_aBuffer . position ( ) ; return ArrayHelper . getCopy ( aArray , nOfs , nLength ) ; }
Get everything as a big byte array without altering the ByteBuffer . This works only if the contained ByteBuffer has a backing array .