Add support for printing messages to DDSI trace

NOTE: not tested against versions of Cyclone that don't have the feature

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-09-01 15:32:04 +02:00 committed by eboasson
parent 888235e96e
commit fb8c08bd7f
5 changed files with 348 additions and 7 deletions

View file

@ -34,3 +34,12 @@ cycdeser::cycdeser(const void * data_, size_t size_)
lim(size_ - 4)
{
}
cycprint::cycprint(char * buf_, size_t bufsize_, const void * data_, size_t size_)
: data(static_cast<const char *>(data_) + 4),
pos(0),
buf(buf_),
bufsize(bufsize_)
{
static_cast<void>(size_);
}