-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcpputest_copiers.cpp
45 lines (34 loc) · 1.68 KB
/
cpputest_copiers.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/******************************************************************************
@file cpputest_copiers.cpp
@brief CppUTest Copiers implementations for UniHAL utils
@author Paweł Pielorz (pawel.pielorz@gmail.com)
*****************************************************************************/
/******************************************************************************
Includes
*****************************************************************************/
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include "unihal/utils/array.h"
#include "cpputest_copiers.hpp"
/******************************************************************************
Constants and definitions
*****************************************************************************/
/******************************************************************************
Local variables
*****************************************************************************/
/******************************************************************************
Local function prototypes
*****************************************************************************/
/******************************************************************************
Member Function Definitions
*****************************************************************************/
void VectorCopier::copy(void* out, const void* in)
{
vector_t* outVector = (vector_t*) out;
vector_t* inVector = (vector_t*) in;
memcpy(outVector->data, inVector->data, outVector->size);
}
/******************************************************************************
Local Functions
*****************************************************************************/