Class XXH64State.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new XXH64State.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XXH64State.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • total_len

        public long total_len()
        Returns the value of the total_len field.
      • v1

        public long v1()
        Returns the value of the v1 field.
      • v2

        public long v2()
        Returns the value of the v2 field.
      • v3

        public long v3()
        Returns the value of the v3 field.
      • v4

        public long v4()
        Returns the value of the v4 field.
      • mem64

        public java.nio.LongBuffer mem64()
        Returns a LongBuffer view of the mem64 field.
      • mem64

        public long mem64​(int index)
        Returns the value at the specified index of the mem64 field.
      • memsize

        public int memsize()
        Returns the value of the memsize field.
      • reserved

        public java.nio.IntBuffer reserved()
        Returns a IntBuffer view of the reserved field.
      • reserved

        public int reserved​(int index)
        Returns the value at the specified index of the reserved field.
      • total_len

        public XXH64State.Buffer total_len​(long value)
        Sets the specified value to the total_len field.
      • v1

        public XXH64State.Buffer v1​(long value)
        Sets the specified value to the v1 field.
      • v2

        public XXH64State.Buffer v2​(long value)
        Sets the specified value to the v2 field.
      • v3

        public XXH64State.Buffer v3​(long value)
        Sets the specified value to the v3 field.
      • v4

        public XXH64State.Buffer v4​(long value)
        Sets the specified value to the v4 field.
      • mem64

        public XXH64State.Buffer mem64​(java.nio.LongBuffer value)
        Copies the specified LongBuffer to the mem64 field.
      • mem64

        public XXH64State.Buffer mem64​(int index,
                                       long value)
        Sets the specified value at the specified index of the mem64 field.
      • memsize

        public XXH64State.Buffer memsize​(int value)
        Sets the specified value to the memsize field.
      • reserved

        public XXH64State.Buffer reserved​(java.nio.IntBuffer value)
        Copies the specified IntBuffer to the reserved field.
      • reserved

        public XXH64State.Buffer reserved​(int index,
                                          int value)
        Sets the specified value at the specified index of the reserved field.