StreamSizing¶
- class dsviper.StreamSizing¶
Bases:
objectComputes how many bytes the fixed-width types occupy under one codec.
Strings and blobs are variable-length and have no size_of here, so a total is exact only over fixed-width values. The answers follow the codec: a token codec adds a byte per value. The size a size_of_*s method takes is a count of elements, not of bytes.
Note: Not directly instantiable.
- size_of_blob_id() int¶
Return the number of bytes a blob_id occupies.
- size_of_bool() int¶
Return the number of bytes a bool occupies.
- size_of_commit_id() int¶
Return the number of bytes a commit_id occupies.
- size_of_double() int¶
Return the number of bytes a double occupies.
- size_of_doubles(size: int) int¶
Return the number of bytes size double occupy.
- size_of_float() int¶
Return the number of bytes a float occupies.
- size_of_floats(size: int) int¶
Return the number of bytes size float occupy.
- size_of_int16() int¶
Return the number of bytes an int16 occupies.
- size_of_int16s(size: int) int¶
Return the number of bytes size int16 occupy.
- size_of_int32() int¶
Return the number of bytes an int32 occupies.
- size_of_int32s(size: int) int¶
Return the number of bytes size int32 occupy.
- size_of_int64() int¶
Return the number of bytes an int64 occupies.
- size_of_int64s(size: int) int¶
Return the number of bytes size int64 occupy.
- size_of_int8() int¶
Return the number of bytes an int8 occupies.
- size_of_int8s(size: int) int¶
Return the number of bytes size int8 occupy.
- size_of_uint16() int¶
Return the number of bytes a uint16 occupies.
- size_of_uint16s(size: int) int¶
Return the number of bytes size uint16 occupy.
- size_of_uint32() int¶
Return the number of bytes a uint32 occupies.
- size_of_uint32s(size: int) int¶
Return the number of bytes size uint32 occupy.
- size_of_uint64() int¶
Return the number of bytes a uint64 occupies.
- size_of_uint64s(size: int) int¶
Return the number of bytes size uint64 occupy.
- size_of_uint8() int¶
Return the number of bytes a uint8 occupies.
- size_of_uint8s(size: int) int¶
Return the number of bytes size uint8 occupy.
- size_of_uuid() int¶
Return the number of bytes a uuid occupies.