StreamReaderSharedMemory¶
- class dsviper.StreamReaderSharedMemory(shared_memory)¶
Bases:
objectA byte source over a shared memory region. It reads nothing itself: a codec reader (StreamBinaryReader and its siblings) built over stream_raw_reading() does.
- offset() → int¶
Return the current position in the region, in bytes.
- rewind() → None¶
Rewind the stream.
- size() → int¶
Return the size of the shared region, in bytes.
- stream_raw_reading() → StreamRawReading¶
Return the StreamRawReading interface.