Package org.lwjgl.sdl
Class SDL_StorageInterface.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_StorageInterface.Buffer>
org.lwjgl.system.StructBuffer<SDL_StorageInterface,SDL_StorageInterface.Buffer>
org.lwjgl.sdl.SDL_StorageInterface.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<SDL_StorageInterface>
,NativeResource
,Pointer
- Enclosing class:
SDL_StorageInterface
public static class SDL_StorageInterface.Buffer
extends StructBuffer<SDL_StorageInterface,SDL_StorageInterface.Buffer>
implements NativeResource
An array of
SDL_StorageInterface
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newSDL_StorageInterface.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescription@Nullable SDL_StorageInterfaceCloseCallback
close$()
close$
(@Nullable SDL_StorageInterfaceCloseCallbackI value) Sets the specified value to theclose
field.@Nullable SDL_StorageInterfaceCopyCallback
copy()
copy
(@Nullable SDL_StorageInterfaceCopyCallbackI value) Sets the specified value to thecopy
field.@Nullable SDL_StorageInterfaceEnumerateCallback
enumerate
(@Nullable SDL_StorageInterfaceEnumerateCallbackI value) Sets the specified value to theenumerate
field.@Nullable SDL_StorageInterfaceInfoCallback
info()
info
(@Nullable SDL_StorageInterfaceInfoCallbackI value) Sets the specified value to theinfo
field.@Nullable SDL_StorageInterfaceMkdirCallback
mkdir()
mkdir
(@Nullable SDL_StorageInterfaceMkdirCallbackI value) Sets the specified value to themkdir
field.@Nullable SDL_StorageInterfaceReadFileCallback
read_file
(@Nullable SDL_StorageInterfaceReadFileCallbackI value) Sets the specified value to theread_file
field.@Nullable SDL_StorageInterfaceReadyCallback
ready()
ready
(@Nullable SDL_StorageInterfaceReadyCallbackI value) Sets the specified value to theready
field.@Nullable SDL_StorageInterfaceRemoveCallback
remove()
remove
(@Nullable SDL_StorageInterfaceRemoveCallbackI value) Sets the specified value to theremove
field.@Nullable SDL_StorageInterfaceRenameCallback
rename()
rename
(@Nullable SDL_StorageInterfaceRenameCallbackI value) Sets the specified value to therename
field.space_remaining
(@Nullable SDL_StorageInterfaceSpaceRemainingCallbackI value) Sets the specified value to thespace_remaining
field.int
version()
version
(int value) Sets the specified value to theversion
field.@Nullable SDL_StorageInterfaceWriteFileCallback
write_file
(@Nullable SDL_StorageInterfaceWriteFileCallbackI value) Sets the specified value to thewrite_file
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, 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
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_StorageInterface.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
SDL_StorageInterface.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 Details
-
version
public int version()- Returns:
- the value of the
version
field.
-
close$
- Returns:
- the value of the
close
field.
-
ready
- Returns:
- the value of the
ready
field.
-
enumerate
- Returns:
- the value of the
enumerate
field.
-
info
- Returns:
- the value of the
info
field.
-
read_file
- Returns:
- the value of the
read_file
field.
-
write_file
- Returns:
- the value of the
write_file
field.
-
mkdir
- Returns:
- the value of the
mkdir
field.
-
remove
- Returns:
- the value of the
remove
field.
-
rename
- Returns:
- the value of the
rename
field.
-
copy
- Returns:
- the value of the
copy
field.
-
space_remaining
- Returns:
- the value of the
space_remaining
field.
-
version
Sets the specified value to theversion
field. -
close$
Sets the specified value to theclose
field. -
ready
Sets the specified value to theready
field. -
enumerate
public SDL_StorageInterface.Buffer enumerate(@Nullable SDL_StorageInterfaceEnumerateCallbackI value) Sets the specified value to theenumerate
field. -
info
Sets the specified value to theinfo
field. -
read_file
Sets the specified value to theread_file
field. -
write_file
public SDL_StorageInterface.Buffer write_file(@Nullable SDL_StorageInterfaceWriteFileCallbackI value) Sets the specified value to thewrite_file
field. -
mkdir
Sets the specified value to themkdir
field. -
remove
Sets the specified value to theremove
field. -
rename
Sets the specified value to therename
field. -
copy
Sets the specified value to thecopy
field. -
space_remaining
public SDL_StorageInterface.Buffer space_remaining(@Nullable SDL_StorageInterfaceSpaceRemainingCallbackI value) Sets the specified value to thespace_remaining
field.
-