ScByteArray.h
Go to the documentation of this file.
1 
10 #ifndef SC_BYTE_ARRAY_H_
11 #define SC_BYTE_ARRAY_H_
12 
13 #include "Scandit/ScConfig.h"
14 
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
18 
19 
30 typedef struct {
32  union {
34  const uint8_t *bytes;
35  const uint8_t *data;
36  const char *str;
38  const char *c_str;
39  };
41  union {
42  uint32_t size;
43  uint32_t length;
44  };
45  uint32_t flags;
46 } ScByteArray;
48 
59 SC_EXPORT uint32_t
61 
72 SC_EXPORT const uint8_t*
74 
85 SC_EXPORT const char*
87 
94 SC_EXPORT void sc_byte_array_free(ScByteArray array);
95 
96 #if defined(__cplusplus)
97 }
98 #endif
99 
100 #endif // SC_BYTE_ARRAY_H_
const char * sc_byte_array_get_string(ScByteArray array)
Get a const string pointer to the array data.
void sc_byte_array_free(ScByteArray array)
uint32_t sc_byte_array_get_size(ScByteArray array)
Get the number of bytes in the array.
Common definitions used throughout the ScanditSDK API.
A null terminated array of bytes.
const uint8_t * sc_byte_array_get_data(ScByteArray array)
Get a const pointer to the byte data.