Click or drag to resize

BinaryValueBaseTEndianOrder Class

Represents the base class for a binary data sample stored as a byte array, but implicitly castable to most common native types.
Inheritance Hierarchy
SystemObject
  GSFBinaryValueBaseTEndianOrder
    GSFBigBinaryValue
    GSFLittleBinaryValue
    GSFNativeBinaryValue

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public abstract class BinaryValueBase<TEndianOrder>
where TEndianOrder : EndianOrder
View Source

Type Parameters

TEndianOrder
Type of EndianOrder class used to transpose byte order of derived implementation of BinaryValueBaseTEndianOrder.

The BinaryValueBaseTEndianOrder type exposes the following members.

Constructors
 NameDescription
Protected methodBinaryValueBaseTEndianOrderCreates a new binary value from the given byte array.
Top
Properties
 NameDescription
Public propertyBuffer Gets or sets the binary representation of this data sample.
Public propertyTypeCode Gets or sets TypeCode that this binary data sample represents.
Top
Methods
 NameDescription
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.
Public methodToDouble Returns a double-precision floating point number, accounting for EndianOrder, converted from the Buffer.
Public methodToInt16 Returns a 16-bit signed integer, accounting for EndianOrder, converted from the Buffer.
Public methodToInt24 Returns a 24-bit signed integer, accounting for EndianOrder, converted from the Buffer.
Public methodToInt32 Returns a 32-bit signed integer, accounting for EndianOrder, converted from the Buffer.
Public methodToInt64 Returns a 64-bit signed integer, accounting for EndianOrder, converted from the Buffer.
Public methodToSingle Returns a single-precision floating point number, accounting for EndianOrder, converted from the Buffer.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodToUInt16 Returns a 16-bit unsigned integer, accounting for EndianOrder, converted from the Buffer.
Public methodToUInt24 Returns a 24-bit unsigned integer, accounting for EndianOrder, converted from the Buffer.
Public methodToUInt32 Returns a 32-bit unsigned integer, accounting for EndianOrder, converted from the Buffer.
Public methodToUInt64 Returns a 64-bit unsigned integer, accounting for EndianOrder, converted from the Buffer.
Top
Fields
 NameDescription
Protected fieldStatic members_endianOrderEndianOrder instance used to transpose byte order of derived implementation of BinaryValueBaseTEndianOrder.
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