BlobEncoder

class dsviper.BlobEncoder(blob_layout)

Bases: object

A class used to encode a blob.

blob_layout() BlobLayout

Return the layout of the blob.

encoder_layout() BlobEncoderLayout

Return the encoder layout.

end_encoding() ValueBlob

Return the encoded blob.

write(value: _InputValues) None

Write a value at the end of the blob. The parameter value is an int, a real or a tuple compatible with the layout.