Go to the source code of this file.
|
static int | compareUint8 (uint8_t const *a, uint8_t const *b) |
| The function to use for comparing two items. More...
|
|
static void | copyUint8 (uint8_t *to, uint8_t const *from) |
| The function to use for copying the data of from to to. More...
|
|
static void | swapUint8 (uint8_t *a, uint8_t *b) |
| The function to use for swapping the data of two array items. More...
|
|
◆ compareUint8()
static int compareUint8 |
( |
uint8_t const * |
a, |
|
|
uint8_t const * |
b |
|
) |
| |
|
static |
The function to use for comparing two items.
- Parameters
-
a | Left hand side of comparison. |
b | Right hand side of comparison. |
- Returns
- The function will return 0 when the items are equal. When greater/less comparison is possible, the function should return < 0 if a < b and > 0 if a > b.
- Note
- Specialization for uint8_t
Definition at line 93 of file xsbytearray.c.
◆ copyUint8()
static void copyUint8 |
( |
uint8_t * |
to, |
|
|
uint8_t const * |
from |
|
) |
| |
|
static |
The function to use for copying the data of from to to.
- Parameters
-
to | Pointer to item to copy to. |
from | Pointer to item to copy from. |
- Note
- Specialization for uint8_t
Definition at line 85 of file xsbytearray.c.
◆ swapUint8()
static void swapUint8 |
( |
uint8_t * |
a, |
|
|
uint8_t * |
b |
|
) |
| |
|
static |
The function to use for swapping the data of two array items.
- Parameters
-
a | Pointer to first item to swap. |
b | Pointer to second item to swap. |
- Note
- Specialization for uint8_t
Definition at line 75 of file xsbytearray.c.
◆ g_xsByteArrayDescriptor
void XsArray_rawCopy(void *to, void const *from, XsSize count, XsSize iSize)
Copies items optimized in a direct way.