StreamCodecInstancing

class dsviper.StreamCodecInstancing

Bases: object

Creates the encoder, the decoder and the sizer of one codec.

Note: Not directly instantiable.

create_decoder(blob: ValueBlob) → StreamDecoding

Return a StreamDecoding reading blob with this codec.

create_encoder() → StreamEncoding

Return a StreamEncoding writing a fresh blob with this codec.

create_sizer() → StreamSizing

Return a StreamSizing measuring what this codec would write.

name() → str

Return the name of this codec - StreamRaw, StreamBinary or StreamTokenBinary.