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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescription@Nullable SDL_StorageInterfaceCloseCallbackclose$()close$(@Nullable SDL_StorageInterfaceCloseCallbackI value) Sets the specified value to theclosefield.@Nullable SDL_StorageInterfaceCopyCallbackcopy()copy(@Nullable SDL_StorageInterfaceCopyCallbackI value) Sets the specified value to thecopyfield.@Nullable SDL_StorageInterfaceEnumerateCallbackenumerate(@Nullable SDL_StorageInterfaceEnumerateCallbackI value) Sets the specified value to theenumeratefield.@Nullable SDL_StorageInterfaceInfoCallbackinfo()info(@Nullable SDL_StorageInterfaceInfoCallbackI value) Sets the specified value to theinfofield.@Nullable SDL_StorageInterfaceMkdirCallbackmkdir()mkdir(@Nullable SDL_StorageInterfaceMkdirCallbackI value) Sets the specified value to themkdirfield.@Nullable SDL_StorageInterfaceReadFileCallbackread_file(@Nullable SDL_StorageInterfaceReadFileCallbackI value) Sets the specified value to theread_filefield.@Nullable SDL_StorageInterfaceReadyCallbackready()ready(@Nullable SDL_StorageInterfaceReadyCallbackI value) Sets the specified value to thereadyfield.@Nullable SDL_StorageInterfaceRemoveCallbackremove()remove(@Nullable SDL_StorageInterfaceRemoveCallbackI value) Sets the specified value to theremovefield.@Nullable SDL_StorageInterfaceRenameCallbackrename()rename(@Nullable SDL_StorageInterfaceRenameCallbackI value) Sets the specified value to therenamefield.space_remaining(@Nullable SDL_StorageInterfaceSpaceRemainingCallbackI value) Sets the specified value to thespace_remainingfield.intversion()version(int value) Sets the specified value to theversionfield.@Nullable SDL_StorageInterfaceWriteFileCallbackwrite_file(@Nullable SDL_StorageInterfaceWriteFileCallbackI value) Sets the specified value to thewrite_filefield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_StorageInterface.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 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
versionfield.
-
close$
- Returns:
- the value of the
closefield.
-
ready
- Returns:
- the value of the
readyfield.
-
enumerate
- Returns:
- the value of the
enumeratefield.
-
info
- Returns:
- the value of the
infofield.
-
read_file
- Returns:
- the value of the
read_filefield.
-
write_file
- Returns:
- the value of the
write_filefield.
-
mkdir
- Returns:
- the value of the
mkdirfield.
-
remove
- Returns:
- the value of the
removefield.
-
rename
- Returns:
- the value of the
renamefield.
-
copy
- Returns:
- the value of the
copyfield.
-
space_remaining
- Returns:
- the value of the
space_remainingfield.
-
version
Sets the specified value to theversionfield. -
close$
Sets the specified value to theclosefield. -
ready
Sets the specified value to thereadyfield. -
enumerate
public SDL_StorageInterface.Buffer enumerate(@Nullable SDL_StorageInterfaceEnumerateCallbackI value) Sets the specified value to theenumeratefield. -
info
Sets the specified value to theinfofield. -
read_file
Sets the specified value to theread_filefield. -
write_file
public SDL_StorageInterface.Buffer write_file(@Nullable SDL_StorageInterfaceWriteFileCallbackI value) Sets the specified value to thewrite_filefield. -
mkdir
Sets the specified value to themkdirfield. -
remove
Sets the specified value to theremovefield. -
rename
Sets the specified value to therenamefield. -
copy
Sets the specified value to thecopyfield. -
space_remaining
public SDL_StorageInterface.Buffer space_remaining(@Nullable SDL_StorageInterfaceSpaceRemainingCallbackI value) Sets the specified value to thespace_remainingfield.
-