Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Android

ScByteArray Struct Reference

Public Member Functions

uint32_t sc_byte_array_get_size (ScByteArray array)
 
const uint8_t * sc_byte_array_get_data (ScByteArray array)
 
const char * sc_byte_array_get_string (ScByteArray array)
 

Detailed Description

A null terminated array of bytes.

The array is always terminated with a null-byte, but null-characters may appear in the middle. Use sc_byte_array_get_size() to get the complete length of the data.

Since
4.6.0
Examples:
CommandLineBarcodeScannerCameraSample.c, CommandLineBarcodeScannerImageProcessingSample.c, and CommandLineMatrixScanCameraSample.c.

Member Function Documentation

uint32_t sc_byte_array_get_size ( ScByteArray  array)

Get the number of bytes in the array.

Returns
The number of bytes.
Parameters
arrayThe byte array.
Since
4.6.0
const uint8_t * sc_byte_array_get_data ( ScByteArray  array)

Get a const pointer to the byte data.

Returns
a constant pointer.
Parameters
arrayThe byte array.
Since
4.6.0
const char * sc_byte_array_get_string ( ScByteArray  array)

Get a const string pointer to the array data.

Returns
a constant pointer.
Parameters
arrayThe byte array.
Since
4.6.0

The documentation for this struct was generated from the following file: