Asn1Objects
Base class for all Asn1Objects. This is only intended to support a specific subset of ASN1 stuff as defined by the RFCs to keep things as simple as possible.
Located in /rfc1155.php (line 131)
Class | Description |
---|---|
rfc1155_Boolean | rfc1155 Boolean |
rfc1155_Integer | rfc1155 Integer |
rfc1155_OctetString | rfc1155 Octet String |
rfc1155_ObjectID | rfc1155 Object Identifier (oid) |
rfc1155_Null | rfc1155 Null |
rfc1155_Sequence | rfc1155 Sequence |
Decode Stream
decode() an octet stream into a sequence of Asn1Objects
Decode Length
Decode a BER length field, returing the length and the remainder of the stream
Decode Tag
Decode a BER tag field, returning the tag and the remainder of the stream
Encode Contents
encodeContents must be overridden by subclasses to encode the contents of a particular type
Encode Identifier
encodeIdentifier() returns encoded identifier octets for this object. Section 6.3 of ITU-T-X.209
Encode Length
encodeLength() takes the length of the contents and produces the encoding for that length. Section 6.3 of ITU-T-X.209
define('SNMP_SHORT_INT_LENGTH', 1) to encode as short; needed by some Cisco software
Documentation generated on Mon, 14 Nov 2005 17:55:05 -0700 by phpDocumentor 1.3.0RC3