Skip to main content

Module ber

Module ber 

Source
Expand description

BER (Basic Encoding Rules) codec for ASN.1.

This module implements the ASN.1 BER encoding used by Ember+ protocol. The Ember+ protocol uses BER encoding for all data serialization.

Structs§

BerReader
A reader for BER-encoded data.
BerWriter
A writer for BER-encoded data.
Tag
A BER tag identifier.

Enums§

BerValue
A generic BER value that can hold any type.
Length
BER length encoding.
TagClass
Tag class in BER encoding.
TagType
Tag type (primitive or constructed).
UniversalTag
Universal tag numbers for ASN.1 primitive types.

Traits§

BerDecode
Trait for types that can be decoded from BER format.
BerEncode
Trait for types that can be encoded to BER format.

Functions§

decode
Decode a value from BER format.
encode
Encode a value to BER format.