|
BitwiseCastToUInt32 Method
|
Performs proper bitwise conversion between signed and unsigned value
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.232-beta+203aa83a5a82d50f387e69875549969ad138d6e0
Syntaxpublic static uint ToUInt32(
int signedInt
)
static member ToUInt32 :
signedInt : int -> uint32
GSF.BitwiseCast.ToUInt32 = function(signedInt);
View SourceParameters
- signedInt Int32
- Signed integer that is passed in to be converted to an unsigned integer.
Return Value
UInt32The unsigned integer value.
RemarksThis function is useful because Convert.ToUInt32 will throw an OverflowException for values less than zero.
For example, this function correctly converts signed 32-bit integer -2147483648 (i.e., Int32.MinValue) to unsigned 32-bit integer 2147483648.
See Also