ScEncodingArray.h
Go to the documentation of this file.
1
10#ifndef SC_ENCODING_ARRAY_H_
11#define SC_ENCODING_ARRAY_H_
12
13#include "Scandit/ScByteArray.h"
14#include "Scandit/ScConfig.h"
15
17
26typedef struct {
29 uint32_t start;
30 uint32_t end;
33
42SC_EXPORT
44
57SC_EXPORT
58ScEncodingRange sc_encoding_range_new(char const *c_str, uint32_t start, uint32_t end);
59
68typedef struct {
70 uint32_t size;
73
84SC_EXPORT
86
99SC_EXPORT
101 ScEncodingArray *array, uint32_t pos, char const *encoding, uint32_t start, uint32_t end);
102
113SC_EXPORT
115
127SC_EXPORT
129
138SC_EXPORT
140
142
143#endif // SC_BYTE_ARRAY_H_
Functions to manage an array of bytes.
Common definitions used throughout the ScanditSDK API.
#define SC_EXTERN_C_BEGIN
Start of external C code.
Definition: ScConfig.h:19
#define SC_EXTERN_C_END
End of external C code.
Definition: ScConfig.h:28
A null terminated array of bytes.
An array of encoding ranges.
Definition: ScEncodingArray.h:68
ScEncodingArray sc_encoding_array_new(uint32_t size)
Create new ScEncodingArray with given size.
void sc_encoding_array_assign(ScEncodingArray *array, uint32_t pos, char const *encoding, uint32_t start, uint32_t end)
Assigns the value of the element at index pos in the array.
void sc_encoding_array_free(ScEncodingArray array)
Frees the data of the encoding array.
ScEncodingRange sc_encoding_array_get_item_at(ScEncodingArray array, uint32_t i)
Access an encoding range.
ScEncodingRange * encodings
array of ranges
Definition: ScEncodingArray.h:69
uint32_t size
number of elements in the array
Definition: ScEncodingArray.h:70
uint32_t sc_encoding_array_get_size(ScEncodingArray array)
Get the number of elements in the array.
Character encoding of a range of bytes.
Definition: ScEncodingArray.h:26
ScEncodingRange sc_encoding_range_new(char const *c_str, uint32_t start, uint32_t end)
Create new ScEncodingRange.
uint32_t start
start index in the data
Definition: ScEncodingArray.h:29
void sc_encoding_range_free(ScEncodingRange encoding_range)
Frees the data of the encoding range.
uint32_t end
index after the last element in the data
Definition: ScEncodingArray.h:30
ScByteArray encoding
Definition: ScEncodingArray.h:27