Skip to content
Back to top
View this page

# ValueBlobId

class dsviper.ValueBlobId(blob_layout, blob)

  Bases: `object`

  A class used to represent a 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) → ValueBlobId

    Return a blob_id or raise.

  copy() → ValueBlobId

    Return a deep copy.

  description(*, namespace: NameSpace | None = None) → str

    Return the description.

  encoded() → str

    Return a blob_id.

  hash() → int

    Return the hash value.

  is_valid() → bool

    Return True if the value is not INVALID.

  representation() → str

    Return the representation.

  static try_parse(string: str) → ValueBlobId | None

    Return a blob_id or None.

  type() → Type

    Return the type.

  type_code() → str

    Return the type code.