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 {
33  const uint8_t * bytes;
34  const char * str;
35  };
36  uint32_t size;
37  uint32_t flags;
38 } ScByteArray;
40 
51 SC_EXPORT uint32_t
53 
64 SC_EXPORT const uint8_t*
66 
77 SC_EXPORT const char*
79 
80 #if defined(__cplusplus)
81 }
82 #endif
83 
84 #endif // SC_BYTE_ARRAY_H_
const char * sc_byte_array_get_string(ScByteArray array)
Get a const string pointer to the array data.
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.