Click or drag to resize

NativeBinaryValue Class

Represents a binary data sample stored as a byte array ordered in the endianness of the OS, but implicitly castable to most common native types.
Inheritance Hierarchy
SystemObject
  GSFBinaryValueBaseNativeEndianOrder
    GSFNativeBinaryValue

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public class NativeBinaryValue : BinaryValueBase<NativeEndianOrder>
View Source

The NativeBinaryValue type exposes the following members.

Constructors
 NameDescription
Public methodNativeBinaryValue(Byte)Creates a new binary value, ordered in the endianness of the OS, from the given byte array.
Public methodNativeBinaryValue(TypeCode, Byte)Creates a new binary value, ordered in the endianness of the OS, from the given byte array.
Public methodNativeBinaryValue(Byte, Int32, Int32)Creates a new binary value, ordered in the endianness of the OS, from the given byte array.
Public methodNativeBinaryValue(TypeCode, Byte, Int32, Int32)Creates a new binary value, ordered in the endianness of the OS, from the given byte array.
Top
Properties
 NameDescription
Public propertyBuffer Gets or sets the binary representation of this data sample.
(Inherited from BinaryValueBaseTEndianOrder)
Public propertyTypeCode Gets or sets TypeCode that this binary data sample represents.
(Inherited from BinaryValueBaseTEndianOrder)
Top
Methods
 NameDescription
Public methodConvertToType Returns a NativeBinaryValue representation of source value converted to specified TypeCode.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToByte Returns a byte from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToDouble Returns a double-precision floating point number, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToInt16 Returns a 16-bit signed integer, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToInt24 Returns a 24-bit signed integer, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToInt32 Returns a 32-bit signed integer, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToInt64 Returns a 64-bit signed integer, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToSingle Returns a single-precision floating point number, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToString Returns a String that represents the current NativeBinaryValue.
(Overrides ObjectToString)
Public methodToUInt16 Returns a 16-bit unsigned integer, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToUInt24 Returns a 24-bit unsigned integer, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToUInt32 Returns a 32-bit unsigned integer, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Public methodToUInt64 Returns a 64-bit unsigned integer, accounting for EndianOrder, converted from the Buffer.
(Inherited from BinaryValueBaseTEndianOrder)
Top
Operators
 NameDescription
Public operatorStatic member(Byte to NativeBinaryValue) Implicitly converts Byte to NativeBinaryValue.
Public operatorStatic member(Double to NativeBinaryValue) Implicitly converts Double to NativeBinaryValue.
Public operatorStatic member(Int16 to NativeBinaryValue) Implicitly converts Int16 to NativeBinaryValue.
Public operatorStatic member(Int24 to NativeBinaryValue) Implicitly converts Int24 to NativeBinaryValue.
Public operatorStatic member(Int32 to NativeBinaryValue) Implicitly converts Int32 to NativeBinaryValue.
Public operatorStatic member(Int64 to NativeBinaryValue) Implicitly converts Int64 to NativeBinaryValue.
Public operatorStatic member(NativeBinaryValue to Int24) Implicitly converts NativeBinaryValue to Int24.
Public operatorStatic member(NativeBinaryValue to UInt24) Implicitly converts NativeBinaryValue to UInt24.
Public operatorStatic member(NativeBinaryValue to Byte) Implicitly converts NativeBinaryValue to Byte.
Public operatorStatic member(NativeBinaryValue to Double) Implicitly converts NativeBinaryValue to Double.
Public operatorStatic member(NativeBinaryValue to Int16) Implicitly converts NativeBinaryValue to Int16.
Public operatorStatic member(NativeBinaryValue to Int32) Implicitly converts NativeBinaryValue to Int32.
Public operatorStatic member(NativeBinaryValue to Int64) Implicitly converts NativeBinaryValue to Int64.
Public operatorStatic member(NativeBinaryValue to Single) Implicitly converts NativeBinaryValue to Single.
Public operatorStatic member(NativeBinaryValue to UInt16) Implicitly converts NativeBinaryValue to UInt16.
Public operatorStatic member(NativeBinaryValue to UInt32) Implicitly converts NativeBinaryValue to UInt32.
Public operatorStatic member(NativeBinaryValue to UInt64) Implicitly converts NativeBinaryValue to UInt64.
Public operatorStatic member(Single to NativeBinaryValue) Implicitly converts Single to NativeBinaryValue.
Public operatorStatic member(UInt16 to NativeBinaryValue) Implicitly converts UInt16 to NativeBinaryValue.
Public operatorStatic member(UInt24 to NativeBinaryValue) Implicitly converts UInt24 to NativeBinaryValue.
Public operatorStatic member(UInt32 to NativeBinaryValue) Implicitly converts UInt32 to NativeBinaryValue.
Public operatorStatic member(UInt64 to NativeBinaryValue) Implicitly converts UInt64 to NativeBinaryValue.
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)
Top
See Also

Reference

GSF Namespace