Class: GrabbaBerTlv

GrabbaBerTlv

Access this class via grabba.bertlv

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
Copyright © 2014 Grabba International - All Rights Reserved
Documentation generated by JSDoc 3.4.0 on Thu Oct 6th 2016 using the DocStrap template.