Syntalos::SignalBlockI32

Syntalos::SignalBlockI32

Syntalos::SignalBlockI32

A block of 32-bit signed integer signal data with timestamps.

#include <datatypes.h>

Inherits from Syntalos::BaseDataType

Public Functions

Name
SignalBlockI32(uint sampleCount =60, uint channelCount =1)
SignalBlockI32(struct SignalBlockU16 && src)
size_tlength() const
size_trows() const
size_tcols() const
virtual booltoBytes(ByteVector & output) const override
Serialize the data to a byte array.
SignalBlockI32fromMemory(const void * memory, size_t size)

Public Attributes

Name
VectorXu64timestamps
MatrixXi32data

Additional inherited members

Public Types inherited from Syntalos::BaseDataType

Name
enumTypeId { Unknown, ControlCommand, TableRow, Frame, LineCommand, LineReading, SignalBlockI32, SignalBlockF32, SignalBlockU16, Last}
The TypeId enum.

Public Functions inherited from Syntalos::BaseDataType

Name
virtual~BaseDataType() =default
virtual TypeIdtypeId() const =0
virtual ssize_tmemorySize() const
Calculate the size of the data in memory.
virtual boolwriteToMemory(void * memory, ssize_t size =-1) const
Write the data to a memory block.
booltypeIdIsValid(int value)
std::stringtypeIdToString(int value)
std::stringtypeIdToString(TypeId value)
TypeIdtypeIdFromString(const std::string & str)

Protected Functions inherited from Syntalos::BaseDataType

Name
BaseDataType() =default
BaseDataType(const BaseDataType & ) =default
BaseDataType &operator=(const BaseDataType & ) =default
BaseDataType(BaseDataType && ) =default
BaseDataType &operator=(BaseDataType && ) =default

Public Functions Documentation

function SignalBlockI32

inline explicit SignalBlockI32(
    uint sampleCount =60,
    uint channelCount =1
)

function SignalBlockI32

explicit SignalBlockI32(
    struct SignalBlockU16 && src
)

function length

inline size_t length() const

function rows

inline size_t rows() const

function cols

inline size_t cols() const

function toBytes

inline virtual bool toBytes(
    ByteVector & output
) const override

Serialize the data to a byte array.

Reimplements: Syntalos::BaseDataType::toBytes

Serialize the data to a byte array for local transmission.

function fromMemory

static inline SignalBlockI32 fromMemory(
    const void * memory,
    size_t size
)

Public Attributes Documentation

variable timestamps

VectorXu64 timestamps;

variable data

MatrixXi32 data;

Updated on 2026-05-15 at 01:05:43 +0000