libtcspc.ViewAsBytes¶
- final class libtcspc.ViewAsBytes(event_type)[source]¶
Bases:
NodeProcessor that emits the in-memory bytes of bucketed events.
For each incoming
BucketEventofevent_type, the underlying storage is viewed (without copying) as aBucketEventof bytes and emitted.- Parameters:
event_type (EventType) – Element type of the input buckets. Must be trivially-typed.
Notes
Events handled:
BucketEventofevent_type: emit its storage asBucketEventof bytes (no copy).All other event types: rejected at graph build time.
End of input: pass through.
See also
- tcspc::view_as_bytes()
The underlying C++ factory function.
BatchFromBytesCopy batches of bytes into batches of typed events.