| OrbbecSDK 1.5.7 OrbbecSDK: Software-Development-Kit for Orbbec 3D-Sensor devices

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Attributes | List of all members
OBDataBundle Struct Reference

`#include <ObTypes.h>`

## Public Attributes
OBCmdVersion | cmdVersion
| propertyId's OBCmdVersion More...
void * | data
uint32_t | dataSize
uint32_t | itemTypeSize
uint32_t | itemCount

## Detailed Description

Internal api, publish future. Description: Data type match OBCmdVersion of one propertyId

1. propertyId has multiple OBCmdVersion; different OBCmdVersion of this propertyId has different data type; propertyId && OBCmdVersion match only one data type.
2. itemCount is the number of data type contain in data bytes.
3. C language and C++ is difference.

C language: data's type is an uint8_t pointer, user parse data to destionation type. itemTypeSize == 1，dataSize == itemCount；

C++: data's type is the propertyId && OBCmdVersion's data type. itemTypeSize = sizeof(T)，itemCount = dataSize / itemTypeSize;

Definition at line 1139 of file ObTypes.h.

## Member Data Documentation

OBCmdVersion OBDataBundle::cmdVersion

propertyId's OBCmdVersion

Definition at line 1140 of file ObTypes.h.

void* OBDataBundle::data

Data contain which contain itemCount of element. void *data = new T[itemCount];

Definition at line 1142 of file ObTypes.h.

uint32_t OBDataBundle::dataSize

Data size. unit: byte. dataSize == itemTypeSize * itemCount

Definition at line 1144 of file ObTypes.h.

uint32_t OBDataBundle::itemTypeSize

Size of data item. C language, itemTypeSize = 1, C++: itemTypeSize = sizeof(T)

Definition at line 1147 of file ObTypes.h.

uint32_t OBDataBundle::itemCount

Count of data item. itemCount = dataSize / itemTypeSize; 0 == dataSize % itemTypeSize;

Definition at line 1149 of file ObTypes.h.

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

- /root/libobsensor/include/libobsensor/h/ObTypes.h