Functions | Variables
xsintarray.c File Reference
#include "xsintarray.h"
Include dependency graph for xsintarray.c:

Go to the source code of this file.

Functions

int compareInt (int const *a, int const *b)
 The function to use for comparing two items. More...
 
void copyInt (int *to, int const *from)
 The function to use for copying the data of from to to. More...
 
void swapInt (int *a, int *b)
 The function to use for swapping the data of two array items. More...
 
void XsIntArray_construct (XsIntArray *thisPtr, XsSize count, int const *src)
 

Variables

const XsArrayDescriptor g_xsIntArrayDescriptor
 Descriptor for XsIntArray. More...
 

Function Documentation

◆ compareInt()

int compareInt ( int const *  a,
int const *  b 
)

The function to use for comparing two items.

Parameters
aLeft hand side of comparison.
bRight 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 int

Definition at line 90 of file xsintarray.c.

◆ copyInt()

void copyInt ( int *  to,
int const *  from 
)

The function to use for copying the data of from to to.

Parameters
toPointer to item to copy to.
fromPointer to item to copy from.
Note
Specialization for int

Definition at line 83 of file xsintarray.c.

◆ swapInt()

void swapInt ( int *  a,
int *  b 
)

The function to use for swapping the data of two array items.

Parameters
aPointer to first item to swap.
bPointer to second item to swap.
Note
Specialization for int

Definition at line 74 of file xsintarray.c.

◆ XsIntArray_construct()

void XsIntArray_construct ( XsIntArray thisPtr,
XsSize  count,
int const *  src 
)

Note
Specialization for XsStringArray

Definition at line 116 of file xsintarray.c.

Variable Documentation

◆ g_xsIntArrayDescriptor

const XsArrayDescriptor g_xsIntArrayDescriptor
Initial value:
=
{
sizeof(int),
XSEXPCASTITEMSWAP swapInt,
0,
XSEXPCASTITEMCOPY copyInt,
0,
XSEXPCASTITEMCOPY copyInt,
XSEXPCASTITEMCOMP compareInt,
XSEXPCASTRAWCOPY XsArray_rawCopy
}

Descriptor for XsIntArray.

Definition at line 101 of file xsintarray.c.

XsArray::XsArray_rawCopy
void XsArray_rawCopy(void *to, void const *from, XsSize count, XsSize iSize)
Copies items optimized in a direct way.
Definition: xsarray.c:707
copyInt
void copyInt(int *to, int const *from)
The function to use for copying the data of from to to.
Definition: xsintarray.c:83
compareInt
int compareInt(int const *a, int const *b)
The function to use for comparing two items.
Definition: xsintarray.c:90
swapInt
void swapInt(int *a, int *b)
The function to use for swapping the data of two array items.
Definition: xsintarray.c:74


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21