StreamRawReader¶
- class dsviper.StreamRawReader(stream_raw_reading)¶
Bases:
objectReads values in the machine’s own byte order.
Raw here is the byte order, not the byte-level StreamRawReading its constructor takes - every codec reader takes one of those.
The fastest of the three readers, and the least portable: a stream written on one endianness reads on the other without error, answering numbers built from the wrong bytes. Use it for memory and same-machine transfers.
- read_blob_id() ValueBlobId¶
Read and return a blob_id.
- read_bool() bool¶
Read and return a Python bool.
- read_commit_id() ValueCommitId¶
Read and return a commit_id.
- read_double() float¶
Read and return a Python float.
- read_float() float¶
Read and return a Python float.
- read_int16() int¶
Read and return a Python int.
- read_int32() int¶
Read and return a Python int.
- read_int64() int¶
Read and return a Python int.
- read_int8() int¶
Read and return a Python int.
- read_string() str¶
Read and return a Python str.
- read_uint16() int¶
Read and return a Python int.
- read_uint32() int¶
Read and return a Python int.
- read_uint64() int¶
Read and return a Python int.
- read_uint8() int¶
Read and return a Python int.
- remaining() int¶
Return the number of bytes left to read.
- stream_reading() StreamReading¶
Return the StreamReading interface.