[inline]
Convert a managed ByteArray buffer to a new unmanaged ByteArray buffer. This new buffer should be released when it isn't used.