The Opaque type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Opaque()()()() | Constructor | |
| Opaque(array<Byte>[]()[][]) | Constructor | |
| Opaque(String) |
Constructor
| |
| Opaque(OctetString) | Constructor | |
| Opaque(Opaque) | Copy constructor |
Methods
| Name | Description | |
|---|---|---|
| Append(array<Byte>[]()[][]) |
Append contents of the byte array to the class value. If class value is length 0, byte array
content is set as the class value.
(Inherited from OctetString.) | |
| Append(String) |
Append string value to the OctetString class. If current class content is length 0, new
string value is set as the value of this class.
Class assumes that string value is UTF8 encoded.
(Inherited from OctetString.) | |
| Clear |
Empty data buffer
(Inherited from OctetString.) | |
| Clone | Returns a duplicate of the current object. (Overrides OctetString..::..Clone()()()().) | |
| CompareTo(array<Byte>[]()[][]) |
IComparable interface implementation. Compare class contents with contents of the byte array.
(Inherited from OctetString.) | |
| CompareTo(OctetString) |
IComparable interface implementation. Compare class contents against another class.
(Inherited from OctetString.) | |
| decode |
Decode OctetString from the BER format.
(Inherited from OctetString.) | |
| encode | BER encode OctetString variable. (Inherited from OctetString.) | |
| Equals |
Compare against another object. Acceptable object types are OctetString and
String.
(Inherited from OctetString.) | |
| 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.) | |
| GetEnumerator |
Returns an enumerator that iterates through the OctetString byte collection
(Inherited from OctetString.) | |
| GetHashCode |
Dummy override to prevent compiler warning messages.
(Inherited from OctetString.) | |
| 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.
(Inherited from OctetString.) | |
| Set(Byte) |
Set class value to an array 1 byte long and set the value to the supplied argument.
(Inherited from OctetString.) | |
| Set(array<Byte>[]()[][]) |
Set class value from the argument byte array. If byte array argument is null or length == 0,
internal OctetString buffer is set to null.
(Inherited from OctetString.) | |
| Set(String) | Set object value to bytes from the supplied string. If argument string length == 0, internal OctetString
buffer is set to null. (Inherited from OctetString.) | |
| Set(Int32, Byte) |
Set value at specified position to the supplied value
(Inherited from OctetString.) | |
| SetRef |
Set class value to reference of parameter byte array
(Inherited from OctetString.) | |
| ToArray |
Convert the OctetString class to a byte array. Internal class data buffer is *copied* and not passed to the caller.
(Inherited from OctetString.) | |
| ToHexString |
Return string formatted hexadecimal representation of the objects value.
(Inherited from OctetString.) | |
| ToMACAddressString | Utility function to print a MAC address (binary string of 6 byte length. (Inherited from OctetString.) | |
| 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.
(Inherited from OctetString.) |
Fields
| Name | Description | |
|---|---|---|
| _asnType |
ASN.1 type byte.
(Inherited from AsnType.) | |
| _data | Data buffer (Inherited from OctetString.) |
Properties
| Name | Description | |
|---|---|---|
| IsHex |
Return true if OctetString contains non-printable characters, otherwise return false.
(Inherited from OctetString.) | |
| Item |
Indexed access to the OctetString class data members.
(Inherited from OctetString.)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. (Inherited from OctetString.) | |
| Type |
Get ASN.1 value type stored in this class.
(Inherited from AsnType.) |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| IEnumerable..::..GetEnumerator |
Returns an enumerator that iterates through the OctetString byte collection
(Inherited from OctetString.) |