The OctetString type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| OctetString | Overloaded. |
Methods
| Name | Description | |
|---|---|---|
| Append | Overloaded. | |
| Clone | Creates a duplicate copy of the object and returns it to the caller. (Overrides AsnType..::.Clone()()().) | |
| decode |
Decode OctetString from the BER format.
(Overrides AsnType..::.decode(array<Byte>[]()[], Int32).) | |
| encode | BER encode OctetString variable. (Overrides AsnType..::.encode(MutableByte).) | |
| Equals |
Compare against another object. Acceptable object types are OctetString and
String.
(Overrides Object..::.Equals(Object).) | |
| FieldGetter | (Inherited from Object.) | |
| FieldSetter | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetFieldInfo | (Inherited from Object.) | |
| GetHashCode |
Dummy override to prevent compiler warning messages.
(Overrides Object..::.GetHashCode()()().) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Reset |
Reset internal buffer to null.
| |
| Set | Overloaded. | |
| ToArray |
Convert the OctetString class to a byte array. Internal class data buffer is *copied* and not passed to the caller.
| |
| ToHexString |
Return string formatted hexadecimal representation of the objects value.
| |
| ToMACAddressString | Utility function to print a MAC address (binary string of 6 byte length. | |
| ToString | Return string representation of the OctetStrig object. If non-printable characters have been
found in the object, output is a hex representation of the string.
(Overrides Object..::.ToString()()().) |
Operators
| Name | Description | |
|---|---|---|
| Equality |
Overloading equality operator
| |
| Implicit |
Implicit operator allowing cast of OctetString objects to byte[] array
| |
| Inequality |
Negative equality operator
|
Fields
Properties
| Name | Description | |
|---|---|---|
| Item |
Indexed access to the OctetString class data members.
OctetString os = new OctetString("test"); for(int i=0;i<=os.Length;i++) { Console.WriteLine("{0}",os[i]); } | |
| Length | Get length of the internal byte array. 0 if byte array is undefined or zero length. | |
| Type |
Return ASN.1 type of the object stored in this or derived class.
(Inherited from AsnType.) |