Package org.lwjgl.util.xxhash
Class XXH64State.Buffer
- java.lang.Object
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XXH64State,XXH64State.Buffer>
-
- org.lwjgl.util.xxhash.XXH64State.Buffer
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, java.lang.Iterable<XXH64State>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
- Enclosing class:
- XXH64State
public static class XXH64State.Buffer extends org.lwjgl.system.StructBuffer<XXH64State,XXH64State.Buffer> implements org.lwjgl.system.NativeResource
An array ofXXH64Statestructs.
-
-
Constructor Summary
Constructors Constructor and Description Buffer(java.nio.ByteBuffer container)Creates a newXXH64State.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.nio.LongBuffermem64()Returns aLongBufferview of themem64field.longmem64(int index)Returns the value at the specified index of themem64field.XXH64State.Buffermem64(int index, long value)Sets the specified value at the specified index of themem64field.XXH64State.Buffermem64(java.nio.LongBuffer value)Copies the specifiedLongBufferto themem64field.intmemsize()Returns the value of thememsizefield.XXH64State.Buffermemsize(int value)Sets the specified value to thememsizefield.java.nio.IntBufferreserved()Returns aIntBufferview of thereservedfield.intreserved(int index)Returns the value at the specified index of thereservedfield.XXH64State.Bufferreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto thereservedfield.XXH64State.Bufferreserved(int index, int value)Sets the specified value at the specified index of thereservedfield.intsizeof()Returns thesizeofa single element in the buffer.longtotal_len()Returns the value of thetotal_lenfield.XXH64State.Buffertotal_len(long value)Sets the specified value to thetotal_lenfield.longv1()Returns the value of thev1field.XXH64State.Bufferv1(long value)Sets the specified value to thev1field.longv2()Returns the value of thev2field.XXH64State.Bufferv2(long value)Sets the specified value to thev2field.longv3()Returns the value of thev3field.XXH64State.Bufferv3(long value)Sets the specified value to thev3field.longv4()Returns the value of thev4field.XXH64State.Bufferv4(long 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 newXXH64State.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 byXXH64State.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<XXH64State.Buffer>
-
total_len
public long total_len()
Returns the value of thetotal_lenfield.
-
v1
public long v1()
Returns the value of thev1field.
-
v2
public long v2()
Returns the value of thev2field.
-
v3
public long v3()
Returns the value of thev3field.
-
v4
public long v4()
Returns the value of thev4field.
-
mem64
public java.nio.LongBuffer mem64()
Returns aLongBufferview of themem64field.
-
mem64
public long mem64(int index)
Returns the value at the specified index of themem64field.
-
memsize
public int memsize()
Returns the value of thememsizefield.
-
reserved
public java.nio.IntBuffer reserved()
Returns aIntBufferview of thereservedfield.
-
reserved
public int reserved(int index)
Returns the value at the specified index of thereservedfield.
-
total_len
public XXH64State.Buffer total_len(long value)
Sets the specified value to thetotal_lenfield.
-
v1
public XXH64State.Buffer v1(long value)
Sets the specified value to thev1field.
-
v2
public XXH64State.Buffer v2(long value)
Sets the specified value to thev2field.
-
v3
public XXH64State.Buffer v3(long value)
Sets the specified value to thev3field.
-
v4
public XXH64State.Buffer v4(long value)
Sets the specified value to thev4field.
-
mem64
public XXH64State.Buffer mem64(java.nio.LongBuffer value)
Copies the specifiedLongBufferto themem64field.
-
mem64
public XXH64State.Buffer mem64(int index, long value)
Sets the specified value at the specified index of themem64field.
-
memsize
public XXH64State.Buffer memsize(int value)
Sets the specified value to thememsizefield.
-
reserved
public XXH64State.Buffer reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public XXH64State.Buffer reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
-