Skip to content

DataResult

#include <sbio/formats/xtc1/xtc1.hh>
struct DataResult

Defined in src/lib/sbio/formats/xtc1/xtc1.hh:60

A small struct that returns all necessary information to access a payload in a datagram. When a detector/segment/algorithm/field combination is specified, the return type will be this struct which provides the pointer to the data, the shape and size of the payload, and the data type.

Name Kind Owner
data variable Declared here
size variable Declared here
rank variable Declared here
shape variable Declared here
dtype variable Declared here
Return Name Description
const void * data Pointer to the raw data.
std::size_t size Total bytes of payload.
std::uint16_t rank Rank of data (num dimensions)
std::uint32_t shape Shape of the data.
DType dtype Data type.

const void * data

Defined in src/lib/sbio/formats/xtc1/xtc1.hh:61

Pointer to the raw data.


std::size_t size { 0 }

Defined in src/lib/sbio/formats/xtc1/xtc1.hh:62

Total bytes of payload.


std::uint16_t rank { 0 }

Defined in src/lib/sbio/formats/xtc1/xtc1.hh:63

Rank of data (num dimensions)


std::uint32_t shape {}

Defined in src/lib/sbio/formats/xtc1/xtc1.hh:64

Shape of the data.


DType dtype

Defined in src/lib/sbio/formats/xtc1/xtc1.hh:65

Data type.