lib/tlv.js
function parseAllTags(buf) {
  var result = [];
  var element;
  
  while (buf.length > 0) {
    element = parseTag(buf);
    buf = buf.slice(element.length);
    result.push(element.tag);
  }
  
  return result;
}
function parseAllTags(buf) {
  var result = [];
  var element;
  
  while (buf.length > 0) {
    element = parseTag(buf);
    buf = buf.slice(element.length);
    result.push(element.tag);
  }
  
  return result;
}
function parseAllTags ( buf ) { var result = [ ] ; var element ; while ( buf . length > 0 ) { element = parseTag ( buf ) ; buf = buf . slice ( element . length ) ; result . push ( element . tag ) ; } return result ; }
Parses the entire Buffer as a sequence of TLV tags.
The tags are returned in an array, containing their numeric values.

@param {Buffer} buf
@return {Array}
Parses the entire Buffer as a sequence of TLV tags . The tags are returned in an array containing their numeric values .