Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Data

Data packet.

Hierarchy

  • PublicFields
    • Data

Implements

Index

Constructors

  • Construct from flexible arguments.

    Arguments can include, in any order unless otherwise specified:

    • Data to copy from
    • Name or name URI
    • Data.ContentType(v)
    • Data.FreshnessPeriod(v)
    • Data.FinalBlock (must appear after Name)
    • Uint8Array as Content

    Parameters

    Returns Data

Properties

[FIELDS]: Fields
content: Uint8Array = ...
contentType: number
finalBlockId?: Component
freshnessPeriod: number
isFinalBlock: boolean
name: Name = ...
sigInfo: SigInfo = ...
sigValue: Uint8Array = ...

Methods

  • [OP](sign: LLSign): Promise<void>
  • canSatisfy(interest: Interest): Promise<boolean>
  • computeFullName(): Promise<Name>
  • computeImplicitDigest(): Promise<Uint8Array>
  • encodeTo(encoder: Encoder): void
  • getFullName(): undefined | Name
  • getImplicitDigest(): undefined | Uint8Array
  • decodeFrom(decoder: Decoder): Data

Generated using TypeDoc