Click or drag to resize

BitwiseCast Class

Defines specialized bitwise integer data type conversion functions
Inheritance Hierarchy
SystemObject
  GSFBitwiseCast

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public static class BitwiseCast
View Source

The BitwiseCast type exposes the following members.

Methods
 NameDescription
Public methodStatic memberToInt16Performs proper bitwise conversion between unsigned and signed value
Public methodStatic memberToInt24Performs proper bitwise conversion between unsigned and signed value
Public methodStatic memberToInt32Performs proper bitwise conversion between unsigned and signed value
Public methodStatic memberToInt64Performs proper bitwise conversion between unsigned and signed value
Public methodStatic memberToUInt16Performs proper bitwise conversion between signed and unsigned value
Public methodStatic memberToUInt24Performs proper bitwise conversion between signed and unsigned value
Public methodStatic memberToUInt32Performs proper bitwise conversion between signed and unsigned value
Public methodStatic memberToUInt64Performs proper bitwise conversion between signed and unsigned value
Top
Remarks
This class allows for proper bitwise casting between signed and unsigned integers. It may be most useful in languages that do not allow override of numerical overflow checks. For example, C# provides an "unchecked" keyword to allow for bitwise casting, but VB.NET does not.
See Also

Reference

GSF Namespace