Class EOS_TitleStorageFileTransferRequest
java.lang.Object
com.sun.jna.PointerType
host.anzo.eossdk.eos.sdk.titlestorage.EOS_TitleStorageFileTransferRequest
- All Implemented Interfaces:
com.sun.jna.NativeMapped,AutoCloseable
public class EOS_TitleStorageFileTransferRequest
extends com.sun.jna.PointerType
implements AutoCloseable
- Since:
- 8/31/2023
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum File Name Length in bytes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttempt to cancel this file request in progress.voidclose()getFilename(int filenameStringBufferSizeBytes, ByteBuffer outStringBuffer, IntBuffer outStringLength) Get the file name of the file this request is for.Get the current state of a file request.voidrelease()Methods inherited from class com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Field Details
-
EOS_TITLESTORAGE_FILENAME_MAX_LENGTH_BYTES
public static final int EOS_TITLESTORAGE_FILENAME_MAX_LENGTH_BYTESMaximum File Name Length in bytes- See Also:
-
-
Constructor Details
-
EOS_TitleStorageFileTransferRequest
public EOS_TitleStorageFileTransferRequest(com.sun.jna.Pointer address) -
EOS_TitleStorageFileTransferRequest
public EOS_TitleStorageFileTransferRequest()
-
-
Method Details
-
getFileRequestState
Get the current state of a file request.- Returns:
EOS_EResult.EOS_Successif complete and successful, EOS_RequestInProgress if the request is still in progress, or another state for failure.
-
getFilename
public EOS_EResult getFilename(int filenameStringBufferSizeBytes, ByteBuffer outStringBuffer, IntBuffer outStringLength) Get the file name of the file this request is for. OutStringLength will always be set to the string length of the file name if it is not NULL.- Parameters:
filenameStringBufferSizeBytes- The maximum number of bytes that can be written to OutStringBufferoutStringBuffer- The buffer to write the NULL-terminated utf8 file name into, if successfuloutStringLength- How long the file name is (not including null terminator)- Returns:
EOS_EResult.EOS_Successif the file name was successfully written to OutFilenameBuffer, a failure result otherwise- See Also:
-
cancelRequest
Attempt to cancel this file request in progress. This is a best-effort command and is not guaranteed to be successful if the request has completed before this function is called.- Returns:
- EOS_Success if cancel is successful, EOS_NoChange if request had already completed (can't be canceled), EOS_AlreadyPending if it's already been canceled before (this is a final state for canceled request and won't change over time).
-
release
public void release() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-