This utility contains functions to encode and decode primitive BER constructs and simple value semantic types. By convention, all functions return 0 on success, and a non‐zero value otherwise. Also by convention, all the "get" functions take an accumNumBytesConsumed; each of the functions will add to this variable the number of bytes consumed within the scope of the function.
Synopsis
Declared in <balber_berutil.h>
struct BerUtil;
Enums
Name |
Description |
Length sentinel indicating an indefinite BER element length. |
Static Member Functions
Name |
Description |
Decode the "end‐of‐content" octets (two consecutive zero‐octets) from the specified |
|
Decode the identifier octets from the specified |
|
Decode the length octets from the specified |
|
|
|
Encode the "end‐of‐content" octets (two consecutive zero‐octets) to the specified |
|
Encode the identifier octets for the specified |
|
Encode the "indefinite‐length" octet onto the specified |
|
Encode the specified |
|
Encode the specified |
Created with MrDocs