Class Utf8PartialArray

  • All Implemented Interfaces:
    Comparable<AbstractUtf8Array>

    public class Utf8PartialArray
    extends Utf8Array
    This wraps a window in a backing byte array. Without doing any copying.
    Author:
    baldersheim
    • Constructor Detail

      • Utf8PartialArray

        public Utf8PartialArray​(byte[] utf8data,
                                int offset,
                                int bytes)
        Takes ownership of the given byte array. And keeps note of where the interesting utf8 sequence start and its length.
        Parameters:
        utf8data - The backing byte array.
        offset - The start of the utf8 sequence.
        bytes - The length of the utf8 sequence.
    • Method Detail

      • getByteOffset

        protected int getByteOffset()
        Description copied from class: AbstractUtf8Array
        Returns the offset in the backing array where the utf8 sequence starts.
        Overrides:
        getByteOffset in class Utf8Array