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)
SignalBlockI32(struct SignalBlockF32 && src)
size_tlength() const
size_trows() const
size_tcols() const
virtual ssize_tmemorySize() const override
Calculate the size of the data in memory.
virtual boolwriteToMemory(void * memory, ssize_t size =-1) const override
Write the data to a memory block.
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, SignalBlockU16, SignalBlockF32, Last}
The TypeId enum.

Public Functions inherited from Syntalos::BaseDataType

Name
virtual~BaseDataType() =default
virtual TypeIdtypeId() const =0
virtual size_tapproxMemorySize() const
Approximate in-memory footprint of this item, in bytes.
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 SignalBlockI32

explicit SignalBlockI32(
    struct SignalBlockF32 && src
)

function length

inline size_t length() const

function rows

inline size_t rows() const

function cols

inline size_t cols() const

function memorySize

inline virtual ssize_t memorySize() const override

Calculate the size of the data in memory.

Reimplements: Syntalos::BaseDataType::memorySize

Quickly calculate the maximum size this data occupies in memory. This will be used to allocate appropriate shared memory blocks in advance. Return -1 if the size is unknown.

function writeToMemory

inline virtual bool writeToMemory(
    void * memory,
    ssize_t size =-1
) const override

Write the data to a memory block.

Reimplements: Syntalos::BaseDataType::writeToMemory

Write the data to a memory block. The required size of the block is given by the memorySize() method, but a larger size can be passed if needed.

Return true if the data was written successfully.

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-06-12 at 19:41:28 +0000