UNPKG

asn1-ts

Version:

ASN.1 encoding and decoding, including BER, CER, and DER.

19 lines (18 loc) 612 B
export default class EmbeddedPDV { constructor(identification, dataValue) { this.identification = identification; this.dataValue = dataValue; } toString() { return ("EMBEDDED PDV { " + `identification ${this.identification.toString()} ` + `dataValue ${Array.from(this.dataValue).map((byte) => byte.toString(16)).join("")} ` + "}"); } toJSON() { return { identification: this.identification.toJSON(), dataValue: Array.from(this.dataValue).map((byte) => byte.toString(16)).join(""), }; } }