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 Pointer
Pointer.Default -
Field Summary
Fields inherited from interface 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 StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class 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 Pointer.Default
equals, hashCodeMethods inherited from interface 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
- Returns:
- the value of the
versionfield.
-
close$
- Returns:
- the value of the
closefield.
-
ready
- Returns:
- the value of the
readyfield.
-
enumerate
@NativeType("bool (*) (void *, char const *, SDL_EnumerateDirectoryCallback, void *)") public @Nullable SDL_StorageInterfaceEnumerateCallback enumerate()- Returns:
- the value of the
enumeratefield.
-
info
@NativeType("bool (*) (void *, char const *, SDL_PathInfo *)") public @Nullable SDL_StorageInterfaceInfoCallback info()- Returns:
- the value of the
infofield.
-
read_file
@NativeType("bool (*) (void *, char const *, void *, Uint64)") public @Nullable SDL_StorageInterfaceReadFileCallback read_file()- Returns:
- the value of the
read_filefield.
-
write_file
@NativeType("bool (*) (void *, char const *, void const *, Uint64)") public @Nullable SDL_StorageInterfaceWriteFileCallback write_file()- Returns:
- the value of the
write_filefield.
-
mkdir
@NativeType("bool (*) (void *, char const *)") public @Nullable SDL_StorageInterfaceMkdirCallback mkdir()- Returns:
- the value of the
mkdirfield.
-
remove
@NativeType("bool (*) (void *, char const *)") public @Nullable SDL_StorageInterfaceRemoveCallback remove()- Returns:
- the value of the
removefield.
-
rename
@NativeType("bool (*) (void *, char const *, char const *)") public @Nullable SDL_StorageInterfaceRenameCallback rename()- Returns:
- the value of the
renamefield.
-
copy
@NativeType("bool (*) (void *, char const *, char const *)") public @Nullable SDL_StorageInterfaceCopyCallback copy()- Returns:
- the value of the
copyfield.
-
space_remaining
@NativeType("Uint64 (*) (void *)") public @Nullable SDL_StorageInterfaceSpaceRemainingCallback space_remaining()- Returns:
- the value of the
space_remainingfield.
-
version
Sets the specified value to theversionfield. -
close$
public SDL_StorageInterface.Buffer close$(@NativeType("bool (*) (void *)") @Nullable SDL_StorageInterfaceCloseCallbackI value) Sets the specified value to theclosefield. -
ready
public SDL_StorageInterface.Buffer ready(@NativeType("bool (*) (void *)") @Nullable SDL_StorageInterfaceReadyCallbackI value) Sets the specified value to thereadyfield. -
enumerate
public SDL_StorageInterface.Buffer enumerate(@NativeType("bool (*) (void *, char const *, SDL_EnumerateDirectoryCallback, void *)") @Nullable SDL_StorageInterfaceEnumerateCallbackI value) Sets the specified value to theenumeratefield. -
info
public SDL_StorageInterface.Buffer info(@NativeType("bool (*) (void *, char const *, SDL_PathInfo *)") @Nullable SDL_StorageInterfaceInfoCallbackI value) Sets the specified value to theinfofield. -
read_file
public SDL_StorageInterface.Buffer read_file(@NativeType("bool (*) (void *, char const *, void *, Uint64)") @Nullable SDL_StorageInterfaceReadFileCallbackI value) Sets the specified value to theread_filefield. -
write_file
public SDL_StorageInterface.Buffer write_file(@NativeType("bool (*) (void *, char const *, void const *, Uint64)") @Nullable SDL_StorageInterfaceWriteFileCallbackI value) Sets the specified value to thewrite_filefield. -
mkdir
public SDL_StorageInterface.Buffer mkdir(@NativeType("bool (*) (void *, char const *)") @Nullable SDL_StorageInterfaceMkdirCallbackI value) Sets the specified value to themkdirfield. -
remove
public SDL_StorageInterface.Buffer remove(@NativeType("bool (*) (void *, char const *)") @Nullable SDL_StorageInterfaceRemoveCallbackI value) Sets the specified value to theremovefield. -
rename
public SDL_StorageInterface.Buffer rename(@NativeType("bool (*) (void *, char const *, char const *)") @Nullable SDL_StorageInterfaceRenameCallbackI value) Sets the specified value to therenamefield. -
copy
public SDL_StorageInterface.Buffer copy(@NativeType("bool (*) (void *, char const *, char const *)") @Nullable SDL_StorageInterfaceCopyCallbackI value) Sets the specified value to thecopyfield. -
space_remaining
public SDL_StorageInterface.Buffer space_remaining(@NativeType("Uint64 (*) (void *)") @Nullable SDL_StorageInterfaceSpaceRemainingCallbackI value) Sets the specified value to thespace_remainingfield.
-