FlatTagStructureParser

Flat Tag Structure Parser component.

Types

Link copied to clipboard
class ParsingException(val message: String, val cause: Exception) : RuntimeException

Thrown if parsing failed due to invalid structure of input bytes.

Functions

Link copied to clipboard
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