parse

abstract fun parse(bytes: ByteArray): Map<Short, ByteArray>

Parse bytes to a flat map of elements. Expected input value is in the following structure: ELEMENT_1_TAG, ELEMENT_1_LENGTH, ELEMENT_1_VALUE, ..., ELEMENT_N_TAG, ELEMENT_N_LENGTH, ELEMENT_N_VALUE

Return

Map of elements, where element tags are the keys.

Parameters

bytes

Byte array of the flat tag structure.

Throws

If bytes has invalid structure.