C# system.bitconverter




















GetBytes Boolean. Returns the specified Boolean value as a byte array. Applies to. GetBytes Char. Returns the specified Unicode character value as an array of bytes. GetBytes Double. Returns the specified double-precision floating-point value as an array of bytes. GetBytes Half. Returns the specified half-precision floating-point value as an array of bytes.

GetBytes Int Returns the specified bit signed integer value as an array of bytes. GetBytes Single. Returns the specified single-precision floating point value as an array of bytes. GetBytes UInt The following code example converts elements of Byte arrays to Int16 values with the ToInt16 method. The order of bytes in the array must reflect the endianness of the computer system's architecture. For more information, see the Remarks section of the BitConverter class topic.

Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. This browser is no longer supported.

Download Microsoft Edge More info. Contents Exit focus mode. Bit Converter Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System Assembly: System. Converts base data types to an array of bytes, and an array of bytes to base data types. In this article. GetBytes Boolean. GetBytes Char. GetBytes Int GetBytes Single. GetBytes UInt DoubleToInt64Bits Double.

Converts the specified double-precision floating point number to a bit signed integer. Converts the specified double-precision floating point number to a bit unsigned integer. GetBytes Double. Returns the specified double-precision floating-point value as an array of bytes. GetBytes Half. Returns the specified half-precision floating-point value as an array of bytes. Returns the specified bit signed integer value as an array of bytes.

Returns the specified single-precision floating point value as an array of bytes. Returns the specified bit unsigned integer value as an array of bytes. HalfToInt16Bits Half. Converts a half-precision floating-point value into a bit integer. Converts the specified half-precision floating point number to a bit unsigned integer. Int16BitsToHalf Int Reinterprets the specified bit signed integer value as a half-precision floating-point value. Int32BitsToSingle Int Reinterprets the specified bit integer as a single-precision floating-point value.

Int64BitsToDouble Int



0コメント

  • 1000 / 1000