cosc 0.1.0
OSC library for C99 or C++11.
Loading...
Searching...
No Matches
cosc_level Struct Reference

Used to manage the levels of a serial. More...

#include <cosc.h>

Public Attributes

cosc_int32 type
 The level type.
 
cosc_int32 start
 The buffer byte offset of the level start.
 
cosc_int32 size_max
 The level max size.
 
cosc_int32 size
 The number of written or read bytes.
 
cosc_int32 ttstart
 The buffer byte offset of the typetag start.
 
cosc_int32 ttend
 The buffer byte offset of the typetag end, including it's zero terminator and pad zero bytes (i.e where the data payload starts).
 
cosc_int32 ttindex
 The current index in the typetag.
 

Detailed Description

Used to manage the levels of a serial.

Examples
serial.c.

Member Data Documentation

◆ size_max

cosc_int32 cosc_level::size_max

The level max size.

Note
When writing this is the buffer size - start, when reading this is either buffer size - start or the packet size.

◆ ttend

cosc_int32 cosc_level::ttend

The buffer byte offset of the typetag end, including it's zero terminator and pad zero bytes (i.e where the data payload starts).

Note
Only applicable if type is message.

◆ ttindex

cosc_int32 cosc_level::ttindex

The current index in the typetag.

Note
Only used if type is message.

◆ ttstart

cosc_int32 cosc_level::ttstart

The buffer byte offset of the typetag start.

Note
Only used if type is message.

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