Class ZappHeader

A header part of ZappObject.

Hierarchy

  • ZappHeader

Constructors

Properties

resource: ZapResource

A resource type of the payload. It indicates a format of payload.

timestamp: number

An epoch time in milliseconds for creation time of ZappObject. (default: Current epoch)

LENGTH: number = ...
RESOURCE_LENGTH: number = 1
TIMESTAMP_LENGTH: number = 8

Methods

  • Write ZappHeader to given ByteBuffer and return it. The given ByteBuffer MUST be encoded as ZAPP Header.

    Parameters

    • buf: Buffer

    Returns Buffer

Generated using TypeDoc