vectorgrp / sil-kit

Vector SIL Kit – Open-Source Library for Connecting Software-in-the-Loop Environments
https://vectorgrp.github.io/sil-kit-docs
MIT License
107 stars 32 forks source link

SILKIT-1571 core: add ring buffer for storing data from byte stream #64

Closed VJonasHolley closed 3 months ago

VJonasHolley commented 4 months ago

Subject

Use a ring buffer for storing data from byte stream.

Description

This change is introduced for two reasons. First, the message buffer operations w.r.t. reading (e.g. write position) are encapsulated, which results in an improved code readability. Second, a smaller number of copies is necessary when an entire message is passed to the VAsioConnection.

Note that this change does not affect the performance (latency, throughput).

Instructions for review / testing

Developer checklist (address before review)