Interface WrapperAware

    • Method Detail

      • wrap

        Buffer wrap​(byte[] data)
        Returns Buffer, which wraps the byte array.
        Parameters:
        data - byte array to wrap
        Returns:
        Buffer wrapper on top of passed byte array.
      • wrap

        Buffer wrap​(byte[] data,
                    int offset,
                    int length)
        Returns Buffer, which wraps the part of byte array with specific offset and length.
        Parameters:
        data - byte array to wrap
        offset - byte buffer offset
        length - byte buffer length
        Returns:
        Buffer wrapper on top of passed byte array.