SignDoc SDK (C)
5.0.0
|
Array of bytes. More...
#include <SignDocSDK-c.h>
Public Member Functions | |
const int * | SIGNDOC_IntArray_data (const struct SIGNDOC_IntArray *aArray) |
Get a pointer to the data in an array of int values. More... | |
struct SIGNDOC_ByteArray * | SIGNDOC_ByteArray_new (struct SIGNDOC_Exception **aEx) |
Create a new array of bytes (blob). More... | |
void | SIGNDOC_ByteArray_delete (struct SIGNDOC_ByteArray *aArray) |
Free an array of bytes. More... | |
unsigned | SIGNDOC_ByteArray_count (const struct SIGNDOC_ByteArray *aArray) |
Get the number of elements in an array of bytes. More... | |
unsigned char | SIGNDOC_ByteArray_at (struct SIGNDOC_ByteArray *aArray, unsigned aIdx) |
Get a particular byte of an array of bytes. More... | |
unsigned char * | SIGNDOC_ByteArray_data (struct SIGNDOC_ByteArray *aArray) |
Get a pointer to the data in an array of bytes. More... | |
void | SIGNDOC_ByteArray_clear (struct SIGNDOC_ByteArray *aObj) |
Clear a SIGNDOC_ByteArray object. More... | |
void | SIGNDOC_ByteArray_set (struct SIGNDOC_Exception **aEx, struct SIGNDOC_ByteArray *aObj, const unsigned char *aPtr, size_t aSize) |
Replace all the data in a SIGNDOC_ByteArray object. More... | |
Array of bytes.
unsigned char SIGNDOC_ByteArray_at | ( | struct SIGNDOC_ByteArray * | aArray, |
unsigned | aIdx | ||
) |
Get a particular byte of an array of bytes.
[in] | aArray | A pointer to an array of bytes created by SIGNDOC_ByteArray_new(). |
[in] | aIdx | The 0-based array index. |
void SIGNDOC_ByteArray_clear | ( | struct SIGNDOC_ByteArray * | aObj | ) |
Clear a SIGNDOC_ByteArray object.
SIGNDOC_ByteArray_count() will return 0.
[in] | aObj | A pointer to the SIGNDOC_UserOutputStream object. |
unsigned SIGNDOC_ByteArray_count | ( | const struct SIGNDOC_ByteArray * | aArray | ) |
Get the number of elements in an array of bytes.
[in] | aArray | A pointer to an array of bytes created by SIGNDOC_ByteArray_new(). |
unsigned char * SIGNDOC_ByteArray_data | ( | struct SIGNDOC_ByteArray * | aArray | ) |
Get a pointer to the data in an array of bytes.
[in] | aArray | A pointer to an array of bytes created by SIGNDOC_ByteArray_new(). |
void SIGNDOC_ByteArray_delete | ( | struct SIGNDOC_ByteArray * | aArray | ) |
Free an array of bytes.
[in] | aArray | A pointer to an array of bytes created by SIGNDOC_ByteArray_new(), must not be a pointer returned by SIGNDOC_ByteArrayArray_at(). |
struct SIGNDOC_ByteArray * SIGNDOC_ByteArray_new | ( | struct SIGNDOC_Exception ** | aEx | ) |
Create a new array of bytes (blob).
[out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
void SIGNDOC_ByteArray_set | ( | struct SIGNDOC_Exception ** | aEx, |
struct SIGNDOC_ByteArray * | aObj, | ||
const unsigned char * | aPtr, | ||
size_t | aSize | ||
) |
Replace all the data in a SIGNDOC_ByteArray object.
[out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
[in] | aObj | A pointer to the SIGNDOC_UserOutputStream object. |
[in] | aPtr | A pointer to the first octet. |
[in] | aSize | Number of octets pointed to by aPtr. |
const int * SIGNDOC_IntArray_data | ( | const struct SIGNDOC_IntArray * | aArray | ) |
Get a pointer to the data in an array of int values.
[in] | aArray | A pointer to an array of bytes created by SIGNDOC_IntArray_new(). |