Package host.anzo.eossdk.eos.sdk
Class EOS
java.lang.Object
host.anzo.eossdk.eos.sdk.EOS
The Platform Instance is used to gain access to all other Epic Online Service interfaces and to drive internal operations through the Tick.
All Platform Instance calls take a handle of type EOS_HPlatform as the first parameter.
EOS_HPlatform handles are created by calling EOS_Platform_Create and subsequently released by calling EOS_Platform_Release.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEOS_ByteArray_ToString(byte[] byteArray, int length, byte[] outBuffer, com.sun.jna.ptr.IntByReference inOutBufferLength) Encode a byte array into hex encoded stringstatic EOS_EResultEOS_Initialize(EOS_InitializeOptions options) Initialize the Epic Online Services SDK.static EOS_Platform_InterfaceEOS_Platform_Create(EOS_Platform_Options options) Create a single Epic Online Services Platform Instance.static EOS_EResultTear down the Epic Online Services SDK.
-
Field Details
-
EOS_MAJOR_VERSION
public static final int EOS_MAJOR_VERSION- See Also:
-
EOS_MINOR_VERSION
public static final int EOS_MINOR_VERSION- See Also:
-
EOS_PATCH_VERSION
public static final int EOS_PATCH_VERSION- See Also:
-
-
Constructor Details
-
EOS
public EOS()
-
-
Method Details
-
EOS_Initialize
Initialize the Epic Online Services SDK.Before calling any other function in the SDK, clients must call this function.
This function must only be called one time and must have a corresponding EOS_Shutdown call.
- Parameters:
options- - The initialization options to use for the SDK.- Returns:
EOS_EResult.EOS_Successis returned if the SDK successfully initializes.
EOS_EResult.EOS_AlreadyConfiguredis returned if the function has already been called.
EOS_EResult.EOS_InvalidParametersis returned if the provided options are invalid.
-
EOS_Shutdown
Tear down the Epic Online Services SDK.Once this function has been called, no more SDK calls are permitted; calling anything after EOS_Shutdown will result in undefined behavior.
- Returns:
EOS_EResult.EOS_Successis returned if the SDK is successfully torn down.
EOS_EResult.EOS_NotConfiguredis returned if a successful call to EOS_Initialize has not been made.
EOS_EResult.EOS_UnexpectedErroris returned if EOS_Shutdown has already been called.
-
EOS_Platform_Create
Create a single Epic Online Services Platform Instance.The platform instance is used to gain access to the various Epic Online Services.
This function returns an opaque handle to the platform instance, and that handle must be passed to EOS_Platform_Release to release the instance.
- Parameters:
options- platform create options- Returns:
- An opaque handle to the platform instance.
-
EOS_ByteArray_ToString
public EOS_EResult EOS_ByteArray_ToString(byte[] byteArray, int length, byte[] outBuffer, com.sun.jna.ptr.IntByReference inOutBufferLength) Encode a byte array into hex encoded string- Parameters:
byteArray- byte arraylength- byte countoutBuffer- out bufferinOutBufferLength- exchange buffer- Returns:
EOS_EResult.EOS_Successif the encoding was successful and passed out in OutBuffer
EOS_EResult.EOS_InvalidParametersif you pass a null pointer on invalid length for any of the parameters
EOS_EResult.EOS_LimitExceeded- The outBuffer is not large enough to receive the encoding. inOutBufferLength contains the required minimum length to perform the operation successfully.
-