Skip to content
asn1jsasn1jsasn1jsv4.1.0

IBerConvertible

fromBER(inputBuffer, inputOffset, inputLength): number

Base function for converting block from BER encoded array of bytes

ArrayBuffer | Uint8Array<ArrayBufferLike>

ASN.1 BER encoded array

number

Offset in ASN.1 BER encoded array where decoding should be started

number

Maximum length of array of bytes which can be using in this function

number

Offset after least decoded byte


toBER(sizeOnly?): ArrayBuffer

Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)

boolean

Flag that we need only a size of encoding, not a real array of bytes

ArrayBuffer

ASN.1 BER encoded array