Class: Tlv

Tlv

new Tlv()

The Tlv class has static type codes for the NDN-TLV wire format.
Source:

Methods

(static) getHighBytes(x) → {number}

Strip off the lower 32 bits of x and divide by 2^32, returning the "high bytes" above 32 bits. This is necessary because JavaScript << and >> are restricted to 32 bits. (This could be a general function, but we define it here so that the Tlv encoder/decoder is self-contained.)
Parameters:
Name Type Description
x number
Source:
Returns:
Type
number