Options
All
  • Public
  • Public/Protected
  • All
Menu

Data packet.

Hierarchy

  • Fields
    • Data

Implements

Index

Constructors

  • Construct from flexible arguments.

    Arguments can include:

    • 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 = ...
finalBlockId?: Component
name: Name = ...
sigInfo: SigInfo = ...
sigValue: Uint8Array = ...
signedPortion?: Uint8Array
topTlv?: Uint8Array
topTlvDigest?: Uint8Array

Accessors

  • get contentType(): number
  • set contentType(v: number): void
  • get freshnessPeriod(): number
  • set freshnessPeriod(v: number): void
  • get isFinalBlock(): boolean
  • set isFinalBlock(v: boolean): void

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