Click or drag to resize

OctetString Class

OctetString type.
Inheritance Hierarchy
SystemObject
  GSF.Net.SnmpOctetString

Namespace: GSF.Net.Snmp
Assembly: GSF.Net (in GSF.Net.dll) Version: 2.4.218-beta
Syntax
public sealed class OctetString : ISnmpData, 
	IEquatable<OctetString>
View Source

The OctetString type exposes the following members.

Constructors
 NameDescription
Public methodOctetString(Byte) Creates an OctetString from raw bytes.
Public methodOctetString(Levels) Creates an OctetString with a specific Levels.
Public methodOctetString(String) Creates an OctetString with a specific String. This string is treated as UTF-16.
Public methodOctetString(String, Encoding) Creates an OctetString with a specific String. This string is treated in specific Encoding.
Public methodOctetString(TupleInt32, Byte, Stream) Initializes a new instance of the OctetString class.
Top
Properties
 NameDescription
Public propertyStatic memberDefaultEncoding Default encoding of OctetString type.
Public propertyStatic memberEmpty Gets the empty string.
Public propertyEncoding Encoding of this OctetString
Public propertyTypeCode Type code.
Top
Methods
 NameDescription
Public methodAppendBytesTo Appends the bytes to Stream.
Public methodEquals(Object) Determines whether the specified Object is equal to the current OctetString.
(Overrides ObjectEquals(Object))
Public methodEquals(OctetString) Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode)
Public methodGetRaw Gets raw bytes.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsNullOrEmpty Indicates whether the specified OctetString object is a null reference (Nothing in Visual Basic) or an Empty string.
Public methodToHexString Returns a String in a hex form that represents this OctetString.
Public methodToLevels Returns a Levels that represents this OctetString.
Public methodToPhysicalAddress Converts octets to physical address.
Public methodToString Returns a String in UTF-16 that represents this OctetString.
(Overrides ObjectToString)
Public methodToString(Encoding) Returns a String in a specific Encoding that represents this OctetString.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(OctetString, OctetString) The equality operator.
Public operatorStatic memberInequality(OctetString, OctetString) The inequality operator.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodToBytes Converts to byte format.
(Defined by SnmpDataExtension)
Public Extension MethodToPhysicalAddress Converts OctetString to PhysicalAddress.
(Defined by Helper)
Top
See Also