|
|
 |
 |
|
#include <asn1BerCppTypes.h>
Inheritance diagram for ASN1BERMessageBuffer:
List of all members.
Detailed Description
The ASN1BERMessageBuffer class is derived from the ASN1MessageBuffer base class. It is the base class for the ASN1BEREncodeBuffer and ASN1BERDecodeBuffer derived classes. It contains variables and methods specific to encoding or decoding ASN.1 messages using the Basic Encoding Rules(BER) and Distinguished Encoding Rules (DER).It is used to manage the buffer into which an ASN.1 message is to be encoded or decoded.
|
Public Member Functions |
| int | calcIndefLen (ASN1OCTET *buf_p, int bufSize=INT_MAX) |
| void | binDump () |
| void | hexDump (int numocts) |
|
int | CalcIndefLen (ASN1OCTET *buf_p) |
|
void | BinDump () |
|
void | HexDump (int numocts) |
Protected Member Functions |
| | ASN1BERMessageBuffer (Type bufferType) |
Constructor & Destructor Documentation
| ASN1BERMessageBuffer::ASN1BERMessageBuffer |
( |
Type |
bufferType |
) |
[inline, protected] |
|
|
|
The protected constructor creates a new context and sets the buffer class type. Use getStatus() method to determine has error occured during the initialization or not.
- Parameters:
-
| bufferType | Type of message buffer that is being created (for example, BEREncode or BERDecode). |
|
Member Function Documentation
| void ASN1BERMessageBuffer::binDump |
( |
|
) |
[inline] |
|
|
|
This method outputs a formatted binary dump of the current buffer contents to stdout.
Calling Sequence:
messageBuffer.binDump ();
where messageBuffer is an ASN1BERMessageBuffer derived class object. |
| int ASN1BERMessageBuffer::calcIndefLen |
( |
ASN1OCTET * |
buf_p, |
|
|
int |
bufSize = INT_MAX |
|
) |
[inline] |
|
|
|
This method calculates the actual length of an indefinite length message component.
Calling Sequence:
len=messageBuffer.calcIndefLen (buf_p);
where messageBuffer is an ASN1BERMessageBuffer derived class object.
- Parameters:
-
| buf_p | A pointer to a message component encoded using indefinite length encoding. |
| bufSize | Size of the buffer buf_p (in octets). |
- Returns:
- Length, in octets, of message component, as int.
|
| void ASN1BERMessageBuffer::hexDump |
( |
int |
numocts |
) |
[inline] |
|
|
|
This method outputs a hexadecimal dump of the current buffer contents to stdout.
Calling sequence:
messageBuffer.hexDump ();
where messageBuffer is an ASN1BERMessageBuffer derived class object. |
The documentation for this class was generated from the following file:
|
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.
|
This file was last modified on
1 Oct 2004. ASN1C BER Runtime, ASN1C v5.7x |
|