ASN.1 BER encoded array
Offset in ASN.1 BER encoded array where decoding should be started
Maximum length of array of bytes which can be using in this function
Offset after least decoded byte
Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)
Optional
sizeOnly: booleanFlag that we need only a size of encoding, not a real array of bytes
ASN.1 BER encoded array
Base function for converting block from BER encoded array of bytes