Package org.lwjgl.util.xxhash
Class XXH32State.Buffer
- java.lang.Object
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XXH32State,XXH32State.Buffer>
-
- org.lwjgl.util.xxhash.XXH32State.Buffer
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, java.lang.Iterable<XXH32State>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
- Enclosing class:
- XXH32State
public static class XXH32State.Buffer extends org.lwjgl.system.StructBuffer<XXH32State,XXH32State.Buffer> implements org.lwjgl.system.NativeResource
An array ofXXH32Statestructs.
-
-
Constructor Summary
Constructors Constructor and Description Buffer(java.nio.ByteBuffer container)Creates a newXXH32State.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intlarge_len()Returns the value of thelarge_lenfield.XXH32State.Bufferlarge_len(int value)Sets the specified value to thelarge_lenfield.java.nio.IntBuffermem32()Returns aIntBufferview of themem32field.intmem32(int index)Returns the value at the specified index of themem32field.XXH32State.Buffermem32(java.nio.IntBuffer value)Copies the specifiedIntBufferto themem32field.XXH32State.Buffermem32(int index, int value)Sets the specified value at the specified index of themem32field.intmemsize()Returns the value of thememsizefield.XXH32State.Buffermemsize(int value)Sets the specified value to thememsizefield.intreserved()Returns the value of thereservedfield.XXH32State.Bufferreserved(int value)Sets the specified value to thereservedfield.intsizeof()Returns thesizeofa single element in the buffer.inttotal_len_32()Returns the value of thetotal_len_32field.XXH32State.Buffertotal_len_32(int value)Sets the specified value to thetotal_len_32field.intv1()Returns the value of thev1field.XXH32State.Bufferv1(int value)Sets the specified value to thev1field.intv2()Returns the value of thev2field.XXH32State.Bufferv2(int value)Sets the specified value to thev2field.intv3()Returns the value of thev3field.XXH32State.Bufferv3(int value)Sets the specified value to thev3field.intv4()Returns the value of thev4field.XXH32State.Bufferv4(int value)Sets the specified value to thev4field.-
Methods inherited from class org.lwjgl.system.StructBuffer
forEach, get, get, get, get, iterator, parallelStream, put, put, spliterator, stream
-
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
-
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXXH32State.Bufferinstance 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 byXXH32State.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:org.lwjgl.system.CustomBufferReturns thesizeofa single element in the buffer.- Specified by:
sizeofin classorg.lwjgl.system.CustomBuffer<XXH32State.Buffer>
-
total_len_32
public int total_len_32()
Returns the value of thetotal_len_32field.
-
large_len
public int large_len()
Returns the value of thelarge_lenfield.
-
v1
public int v1()
Returns the value of thev1field.
-
v2
public int v2()
Returns the value of thev2field.
-
v3
public int v3()
Returns the value of thev3field.
-
v4
public int v4()
Returns the value of thev4field.
-
mem32
public java.nio.IntBuffer mem32()
Returns aIntBufferview of themem32field.
-
mem32
public int mem32(int index)
Returns the value at the specified index of themem32field.
-
memsize
public int memsize()
Returns the value of thememsizefield.
-
reserved
public int reserved()
Returns the value of thereservedfield.
-
total_len_32
public XXH32State.Buffer total_len_32(int value)
Sets the specified value to thetotal_len_32field.
-
large_len
public XXH32State.Buffer large_len(int value)
Sets the specified value to thelarge_lenfield.
-
v1
public XXH32State.Buffer v1(int value)
Sets the specified value to thev1field.
-
v2
public XXH32State.Buffer v2(int value)
Sets the specified value to thev2field.
-
v3
public XXH32State.Buffer v3(int value)
Sets the specified value to thev3field.
-
v4
public XXH32State.Buffer v4(int value)
Sets the specified value to thev4field.
-
mem32
public XXH32State.Buffer mem32(java.nio.IntBuffer value)
Copies the specifiedIntBufferto themem32field.
-
mem32
public XXH32State.Buffer mem32(int index, int value)
Sets the specified value at the specified index of themem32field.
-
memsize
public XXH32State.Buffer memsize(int value)
Sets the specified value to thememsizefield.
-
reserved
public XXH32State.Buffer reserved(int value)
Sets the specified value to thereservedfield.
-
-