|
libtcspc C++ API
Streaming TCSPC and time tag data processing
|
Handling of large data buffers.
Buckets (tcspc::bucket instances) are used where a single event carries a large quantity of data, such that it is beneficial to avoid copying the data, including to its ultimate destination. Correct use of buckets enables zero-copy writing of processing results to externally-provided destination memory.
Bucket sources provide bucket instances using different backing storage and management thereof.
Topics | |
| Bucket sources | |
| Objects producing a series of tcspc::bucket instances to carry data. | |
Classes | |
| class | tcspc::bucket< T > |
| Value-semantic container for array data allowing use of custom storage. More... | |
Functions | |
| template<typename T> | |
| auto | tcspc::ad_hoc_bucket (std::span< T > s) -> bucket< T > |
| Create a tcspc::bucket referencing a span. | |
|
nodiscard |
Create a tcspc::bucket referencing a span.
This can be used when a bucket is needed but is only used to view existing data and its storage is not important. The storage of the returned bucket cannot be observed or extracted.
| T | the bucket data element type |
| s | the span to wrap as an ad-hoc bucket |