Class: GrabbaBerTlv

GrabbaBerTlv

Access this class via grabba.bertlv

Constructor

new GrabbaBerTlv()

Access GrabbaBerTlv via grabba.bertlv

Methods

processRawBerTlv(rawTLV) → {Object}

Create a TLV object with utility functions. This provides a very simple ASN.1 BER TLV representation which allows you to browse the data within the TLV.
Parameters:
Name Type Description
rawTLV Array.<int>
Returns:
tlv JSON object with BER TLV utility functions as follows:
{tlv.findObjectByTag(tag)} Recurses through all nested BER-TLV objects, returns the first object found with matching tag.
param {int} tag The tag to find.
{return} The first BER-TLV object with matching tag, else null if matching object not found.

{tlv.findNextObjectByTag(tag)} Recurses through all nested BER-TLV objects, returns the next object found with matching tag.
You can call this function repeatedly until null is returned to enumerate all objects with a certain tag.
param {int} tag The tag to find.
{return} The first BER-TLV object with matching tag, else null if matching object not found.
Type
Object