rfc1155 Counter
An ASN.1 Counter type
A counter starts at zero and keeps going to a maximum integer value of 2^32-1 where it wraps back to zero.
Located in /rfc1155.php (line 1101)
rfc1155_Asn1Object | --rfc1155_Integer | --rfc1155_Counter
Class | Description |
---|---|
rfc1902_Counter32 | Counter32 |
rfc1902_Counter64 | Counter64 |
Inherited from rfc1155_Asn1Object
rfc1155_Asn1Object::$asnTagClass
rfc1155_Asn1Object::$asnTagFormat
rfc1155_Asn1Object::$asnTagNumber
rfc1155_Asn1Object::$value
Constructor
Decode Contents
Decode octet stream
Some SNMP stacks encode Counters incorrectly resulting in a negative value. There are two remedies: if you define('SNMP_ABS_COUNTER', 1), we take the absolute value of the result. else, we ignore the fact that the first bit is high and decode it as if it was positive.
Inherited From rfc1155_Integer
rfc1155_Integer::rfc1155_Integer()
rfc1155_Integer::check_range()
rfc1155_Integer::decodeContents()
rfc1155_Integer::encodeContents()
rfc1155_Integer::toString()
Inherited From rfc1155_Asn1Object
rfc1155_Asn1Object::rfc1155_Asn1Object()
rfc1155_Asn1Object::decode()
rfc1155_Asn1Object::decodeLength()
rfc1155_Asn1Object::decodeTag()
rfc1155_Asn1Object::encode()
rfc1155_Asn1Object::encodeContents()
rfc1155_Asn1Object::encodeEndOfContents()
rfc1155_Asn1Object::encodeIdentifier()
rfc1155_Asn1Object::encodeLength()
Documentation generated on Mon, 14 Nov 2005 17:55:07 -0700 by phpDocumentor 1.3.0RC3