Package org.lwjgl.util.xxhash
Class XXH3State.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XXH3State,XXH3State.Buffer>
-
- org.lwjgl.util.xxhash.XXH3State.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<XXH3State>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- XXH3State
public static class XXH3State.Buffer extends org.lwjgl.system.StructBuffer<XXH3State,XXH3State.Buffer> implements org.lwjgl.system.NativeResource
An array ofXXH3State
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.LongBuffer
acc()
Returns aLongBuffer
view of theacc
field.long
acc(int index)
Returns the value at the specified index of theacc
field.java.nio.ByteBuffer
buffer()
Returns aByteBuffer
view of thebuffer
field.byte
buffer(int index)
Returns the value at the specified index of thebuffer
field.int
bufferedSize()
Returns the value of thebufferedSize
field.java.nio.ByteBuffer
customSecret()
Returns aByteBuffer
view of thecustomSecret
field.byte
customSecret(int index)
Returns the value at the specified index of thecustomSecret
field.int
nbStripesPerBlock()
Returns the value of thenbStripesPerBlock
field.int
nbStripesSoFar()
Returns the value of thenbStripesSoFar
field.int
reserved32()
Returns the value of thereserved32
field.int
reserved32_2()
Returns the value of thereserved32_2
field.long
reserved64()
Returns the value of thereserved64
field.java.nio.ByteBuffer
secret(int capacity)
Returns aByteBuffer
view of the data pointed to by thesecret
field.int
secretLimit()
Returns the value of thesecretLimit
field.long
seed()
Returns the value of theseed
field.long
totalLen()
Returns the value of thetotalLen
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXXH3State.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 byXXH3State.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
-
acc
public java.nio.LongBuffer acc()
Returns aLongBuffer
view of theacc
field.
-
acc
public long acc(int index)
Returns the value at the specified index of theacc
field.
-
customSecret
public java.nio.ByteBuffer customSecret()
Returns aByteBuffer
view of thecustomSecret
field.
-
customSecret
public byte customSecret(int index)
Returns the value at the specified index of thecustomSecret
field.
-
buffer
public java.nio.ByteBuffer buffer()
Returns aByteBuffer
view of thebuffer
field.
-
buffer
public byte buffer(int index)
Returns the value at the specified index of thebuffer
field.
-
secret
public java.nio.ByteBuffer secret(int capacity)
Returns aByteBuffer
view of the data pointed to by thesecret
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
bufferedSize
public int bufferedSize()
Returns the value of thebufferedSize
field.
-
nbStripesPerBlock
public int nbStripesPerBlock()
Returns the value of thenbStripesPerBlock
field.
-
nbStripesSoFar
public int nbStripesSoFar()
Returns the value of thenbStripesSoFar
field.
-
reserved32
public int reserved32()
Returns the value of thereserved32
field.
-
reserved32_2
public int reserved32_2()
Returns the value of thereserved32_2
field.
-
secretLimit
public int secretLimit()
Returns the value of thesecretLimit
field.
-
totalLen
public long totalLen()
Returns the value of thetotalLen
field.
-
seed
public long seed()
Returns the value of theseed
field.
-
reserved64
public long reserved64()
Returns the value of thereserved64
field.
-
-