Typeberry by Fluffy Labs - v0.4.0
    Preparing search index...

    Class BytesBlob

    A variable-length blob of bytes with a concise text representation.

    The structure is used as convenience wrapper for [Uint8Array], especially if the data is coming from a hex-encoded string.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    length: number = 0
    raw: Uint8Array

    Methods

    • Display a hex-encoded version of this byte blob, but truncated if it's large.

      Returns string

    • Create a new [BytesBlob] by concatenating data from multiple Uint8Arrays.

      Parameters

      • v: Uint8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike>[]
      • ...rest: Uint8Array<ArrayBufferLike>[]

      Returns BytesBlob