LibreOffice
LibreOffice 24.2 SDK C/C++ API Reference
|
Go to the source code of this file.
Typedefs | |
typedef void * | rtlRandomPool |
Random Pool opaque type. More... | |
typedef enum __rtl_RandomError | rtlRandomError |
Error Code type. More... | |
Enumerations | |
enum | __rtl_RandomError { rtl_Random_E_None, rtl_Random_E_Argument, rtl_Random_E_Memory, rtl_Random_E_Unknown, rtl_Random_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM } |
Error Code enumeration. More... | |
Functions | |
SAL_DLLPUBLIC rtlRandomPool | rtl_random_createPool (void) SAL_THROW_EXTERN_C() |
Create a Random Pool. More... | |
SAL_DLLPUBLIC void | rtl_random_destroyPool (rtlRandomPool Pool) SAL_THROW_EXTERN_C() |
Destroy a Random Pool. More... | |
SAL_DLLPUBLIC rtlRandomError | rtl_random_addBytes (rtlRandomPool Pool, const void *Buffer, sal_Size Bytes) SAL_THROW_EXTERN_C() |
Add bytes to a Random Pool. More... | |
SAL_DLLPUBLIC rtlRandomError | rtl_random_getBytes (rtlRandomPool Pool, void *Buffer, sal_Size Bytes) SAL_THROW_EXTERN_C() |
Retrieve bytes from a Random Pool. More... | |
typedef enum __rtl_RandomError rtlRandomError |
Error Code type.
typedef void* rtlRandomPool |
Random Pool opaque type.
enum __rtl_RandomError |
SAL_DLLPUBLIC rtlRandomError rtl_random_addBytes | ( | rtlRandomPool | Pool, |
const void * | Buffer, | ||
sal_Size | Bytes | ||
) |
Add bytes to a Random Pool.
[in] | Pool | a Random Pool. |
[in] | Buffer | a buffer containing the bytes to add. |
[in] | Bytes | the number of bytes to read from the buffer. |
rtl_Random_E_None | upon success. |
SAL_DLLPUBLIC rtlRandomPool rtl_random_createPool | ( | void | ) |
Create a Random Pool.
SAL_DLLPUBLIC void rtl_random_destroyPool | ( | rtlRandomPool | Pool | ) |
Destroy a Random Pool.
[in] | Pool | a Random Pool. |
SAL_DLLPUBLIC rtlRandomError rtl_random_getBytes | ( | rtlRandomPool | Pool, |
void * | Buffer, | ||
sal_Size | Bytes | ||
) |
Retrieve bytes from a Random Pool.
[in] | Pool | a Random Pool. |
[in,out] | Buffer | a buffer to receive the random bytes. |
[in] | Bytes | the number of bytes to write to the buffer. |
rtl_Random_E_None | upon success. |