| IOLink 1.11.0

Loading...
Searching...
No Matches
DataConverter.h
1#pragma once
2
3#include <iolink/DataType.h>
4#include <iolink/IOLinkAPI.h>
5
6 namespace iolink
7{
8
12 class IOLINK_API DataConverter
13{
14 public:
36 static void convert(DataType srcType, const void* src, DataType dstType, void* dst, size_t count);
37
51 static void endianReverse(DataType srcType, const void* src, void* dst, size_t count);
52};
53
54} // end namespace iolink
iolink::DataConverter
Handle conversion of data buffers described by an IOLink DataType.
Definition DataConverter.h:13
iolink::DataConverter::endianReverse
static void endianReverse(DataType srcType, const void *src, void *dst, size_t count)
This converter is used to revert endianness of a set of samples.
iolink::DataConverter::convert
static void convert(DataType srcType, const void *src, DataType dstType, void *dst, size_t count)
Convert each element of the source buffer into another data type and writes it into the destination b...
iolink::DataType
Stores information about a data type.
Definition DataType.h:162
iolink
All IOLink symbols are enclosed in this namespace.
Definition ArrayX.h:8