Package org.lwjgl.util.tinyexr
Class EXRChannelInfo.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<EXRChannelInfo,EXRChannelInfo.Buffer>
-
- org.lwjgl.util.tinyexr.EXRChannelInfo.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<EXRChannelInfo>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- EXRChannelInfo
public static class EXRChannelInfo.Buffer extends org.lwjgl.system.StructBuffer<EXRChannelInfo,EXRChannelInfo.Buffer> implements org.lwjgl.system.NativeResource
An array ofEXRChannelInfo
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
name()
Returns aByteBuffer
view of thename
field.EXRChannelInfo.Buffer
name(java.nio.ByteBuffer value)
Copies the specified encoded string to thename
field.java.lang.String
nameString()
Decodes the null-terminated string stored in thename
field.byte
p_linear()
Returns the value of thep_linear
field.EXRChannelInfo.Buffer
p_linear(byte value)
Sets the specified value to thep_linear
field.int
pixel_type()
Returns the value of thepixel_type
field.EXRChannelInfo.Buffer
pixel_type(int value)
Sets the specified value to thepixel_type
field.int
x_sampling()
Returns the value of thex_sampling
field.EXRChannelInfo.Buffer
x_sampling(int value)
Sets the specified value to thex_sampling
field.int
y_sampling()
Returns the value of they_sampling
field.EXRChannelInfo.Buffer
y_sampling(int value)
Sets the specified value to they_sampling
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newEXRChannelInfo.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 byEXRChannelInfo.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
-
name
public java.nio.ByteBuffer name()
Returns aByteBuffer
view of thename
field.
-
nameString
public java.lang.String nameString()
Decodes the null-terminated string stored in thename
field.
-
pixel_type
public int pixel_type()
Returns the value of thepixel_type
field.
-
x_sampling
public int x_sampling()
Returns the value of thex_sampling
field.
-
y_sampling
public int y_sampling()
Returns the value of they_sampling
field.
-
p_linear
public byte p_linear()
Returns the value of thep_linear
field.
-
name
public EXRChannelInfo.Buffer name(java.nio.ByteBuffer value)
Copies the specified encoded string to thename
field.
-
pixel_type
public EXRChannelInfo.Buffer pixel_type(int value)
Sets the specified value to thepixel_type
field.
-
x_sampling
public EXRChannelInfo.Buffer x_sampling(int value)
Sets the specified value to thex_sampling
field.
-
y_sampling
public EXRChannelInfo.Buffer y_sampling(int value)
Sets the specified value to they_sampling
field.
-
p_linear
public EXRChannelInfo.Buffer p_linear(byte value)
Sets the specified value to thep_linear
field.
-
-