ZappHeader

class ZappHeader(val resource: ZapResource, val timestamp: ULong = System.currentTimeMillis().toULong())

A header part of ZappObject.

Constructors

Link copied to clipboard
constructor(resource: ZapResource, timestamp: ULong = System.currentTimeMillis().toULong())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard

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