Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Data

Data packet.

Hierarchy

  • Fields
    • Data

Implements

Index

Constructors

constructor

  • 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

Readonly [FIELDS]

[FIELDS]: Fields

content

content: Uint8Array = ...

Optional finalBlockId

finalBlockId: Component

name

name: Name = ...

sigInfo

sigInfo: SigInfo = ...

sigValue

sigValue: Uint8Array = ...

Optional signedPortion

signedPortion: Uint8Array

Optional topTlv

topTlv: Uint8Array

Optional topTlvDigest

topTlvDigest: Uint8Array

Accessors

contentType

  • get contentType(): number
  • set contentType(v: number): void

freshnessPeriod

  • get freshnessPeriod(): number
  • set freshnessPeriod(v: number): void

isFinalBlock

  • get isFinalBlock(): boolean
  • set isFinalBlock(v: boolean): void

Methods

[OP]

  • [OP](sign: LLSign): Promise<void>

[OP]

canSatisfy

  • canSatisfy(interest: Interest): Promise<boolean>

computeFullName

  • computeFullName(): Promise<Name>

computeImplicitDigest

  • computeImplicitDigest(): Promise<Uint8Array>

encodeTo

getFullName

  • getFullName(): undefined | Name

getImplicitDigest

  • getImplicitDigest(): undefined | Uint8Array

Static decodeFrom

Generated using TypeDoc