ValueBlobId¶
- class dsviper.ValueBlobId(blob_layout, blob)¶
Bases:
ValueA value of type blob_id. The uniq identifier is computed from the immutable content of the blob and the layout.
- INVALID = 0000000000000000000000000000000000000000¶
- static cast(value: Value | _OutputValues) ValueBlobId¶
Return value as a blob_id, or raise if it is not one.
- copy() ValueBlobId¶
Return a deep copy.
- description(*, namespace: NameSpace | None = None) str¶
Return the value written out, then its type, as <value>:<type>.
namespace qualifies the type name; representation() gives the value alone.
- encoded() str¶
Return a Python str.
- hash() int¶
Return the hash value.
- is_valid() bool¶
Return True if the value is not INVALID.
- representation() str¶
Return the value written out: the identifier as a hex string.
- static try_parse(string: str) ValueBlobId | None¶
Return string parsed as a blob_id, or None if it does not parse.
- type_code() str¶
Return the code naming this kind of value, such as “int32”, “struct” or “vector”.