Class XXH32State.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new XXH32State.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 XXH32State.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_32

        public int total_len_32()
        Returns the value of the total_len_32 field.
      • large_len

        public int large_len()
        Returns the value of the large_len field.
      • v1

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

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

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

        public int v4()
        Returns the value of the v4 field.
      • mem32

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

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

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

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

        public XXH32State.Buffer total_len_32​(int value)
        Sets the specified value to the total_len_32 field.
      • large_len

        public XXH32State.Buffer large_len​(int value)
        Sets the specified value to the large_len field.
      • v1

        public XXH32State.Buffer v1​(int value)
        Sets the specified value to the v1 field.
      • v2

        public XXH32State.Buffer v2​(int value)
        Sets the specified value to the v2 field.
      • v3

        public XXH32State.Buffer v3​(int value)
        Sets the specified value to the v3 field.
      • v4

        public XXH32State.Buffer v4​(int value)
        Sets the specified value to the v4 field.
      • mem32

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

        public XXH32State.Buffer mem32​(int index,
                                       int value)
        Sets the specified value at the specified index of the mem32 field.
      • memsize

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

        public XXH32State.Buffer reserved​(int value)
        Sets the specified value to the reserved field.