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

Go to the source code of this file.

Functions

int compareInt64 (int64_t const *a, int64_t const *b)
 The function to use for comparing two items. More...
 
void copyInt64 (int64_t *to, int64_t const *from)
 The function to use for copying the data of from to to. More...
 
void swapInt64 (int64_t *a, int64_t *b)
 The function to use for swapping the data of two array items. More...
 
void XsInt64Array_construct (XsInt64Array *thisPtr, XsSize count, int64_t const *src)
 

Variables

const XsArrayDescriptor g_xsInt64ArrayDescriptor
 Descriptor for XsInt64Array. More...
 

Function Documentation

◆ compareInt64()

int compareInt64 ( int64_t const *  a,
int64_t 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 int64_t

Definition at line 90 of file xsint64array.c.

◆ copyInt64()

void copyInt64 ( int64_t *  to,
int64_t 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 int64_t

Definition at line 83 of file xsint64array.c.

◆ swapInt64()

void swapInt64 ( int64_t *  a,
int64_t *  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 int64_t

Definition at line 74 of file xsint64array.c.

◆ XsInt64Array_construct()

void XsInt64Array_construct ( XsInt64Array thisPtr,
XsSize  count,
int64_t const *  src 
)

Note
Specialization for XsInt64Array

Definition at line 115 of file xsint64array.c.

Variable Documentation

◆ g_xsInt64ArrayDescriptor

const XsArrayDescriptor g_xsInt64ArrayDescriptor
Initial value:
=
{
sizeof(int64_t),
XSEXPCASTITEMSWAP swapInt64,
0,
XSEXPCASTITEMCOPY copyInt64,
0,
XSEXPCASTITEMCOPY copyInt64,
XSEXPCASTITEMCOMP compareInt64,
XSEXPCASTRAWCOPY XsArray_rawCopy
}

Descriptor for XsInt64Array.

Definition at line 100 of file xsint64array.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
swapInt64
void swapInt64(int64_t *a, int64_t *b)
The function to use for swapping the data of two array items.
Definition: xsint64array.c:74
copyInt64
void copyInt64(int64_t *to, int64_t const *from)
The function to use for copying the data of from to to.
Definition: xsint64array.c:83
compareInt64
int compareInt64(int64_t const *a, int64_t const *b)
The function to use for comparing two items.
Definition: xsint64array.c:90


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