Converts a specified type into an array of unsigned bytes.
Converts a 32-bit unsigned integer into an array of bytes with length 4.
[Visual Basic] Overloads Public Shared Function GetBytes(UInt32) As Byte ()
[C#] public static byte[] GetBytes(uint);
[C++] public: static unsigned char* GetBytes(unsigned int) [];
[JScript] public static function GetBytes(UInt32) : Byte[];
Converts a 16-bit unsigned integer into an array of bytes with length 2.
[Visual Basic] Overloads Public Shared Function GetBytes(UInt16) As Byte ()
[C#] public static byte[] GetBytes(ushort);
[C++] public: static unsigned char* GetBytes(unsigned short) [];
[JScript] public static function GetBytes(UInt16) : Byte[];
Converts an 64-bit signed integer into an array of unsigned bytes with length 8.
[Visual Basic] Overloads Public Shared Function GetBytes(Long) As Byte ()
[C#] public static byte[] GetBytes(long);
[C++] public: static unsigned char* GetBytes(__int64) [];
[JScript] public static function GetBytes(long) : Byte[];
Converts a double-precision floating-point number into an array of unsigned bytes with length 8.
[Visual Basic] Overloads Public Shared Function GetBytes(Double) As Byte ()
[C#] public static byte[] GetBytes(double);
[C++] public: static unsigned char* GetBytes(double) [];
[JScript] public static function GetBytes(double) : Byte[];
Converts a single-precision floating-point number into an array of unsigned bytes with length 4.
[Visual Basic] Overloads Public Shared Function GetBytes(Single) As Byte ()
[C#] public static byte[] GetBytes(float);
[C++] public: static unsigned char* GetBytes(float) [];
[JScript] public static function GetBytes(float) : Byte[];
Converts a 64-bit unsigned integer into an array of bytes with length 8.
[Visual Basic] Overloads Public Shared Function GetBytes(UInt64) As Byte ()
[C#] public static byte[] GetBytes(ulong);
[C++] public: static unsigned char* GetBytes(unsigned __int64) [];
[JScript] public static function GetBytes(UInt64) : Byte[];
Converts a 16-bit signed integer into an array of unsigned bytes with length 2.
[Visual Basic] Overloads Public Shared Function GetBytes(Integer) As Byte ()
[C#] public static byte[] GetBytes(short);
[C++] public: static unsigned char* GetBytes(short) [];
[JScript] public static function GetBytes(Int16) : Byte[];
Converts a unicode character into an array of unsigned bytes with length 2.
[Visual Basic] Overloads Public Shared Function GetBytes(Char) As Byte ()
[C#] public static byte[] GetBytes(char);
[C++] public: static unsigned char* GetBytes(__wchar_t) [];
[JScript] public static function GetBytes(Char) : Byte[];
Converts a boolean value into an array of bytes with length one.
[Visual Basic] Overloads Public Shared Function GetBytes(Boolean) As Byte ()
[C#] public static byte[] GetBytes(bool);
[C++] public: static unsigned char* GetBytes(bool) [];
[JScript] public static function GetBytes(Boolean) : Byte[];
Converts a 32-bit signed integer into an array of unsigned bytes with length 4.
[Visual Basic] Overloads Public Shared Function GetBytes(Integer) As Byte ()
[C#] public static byte[] GetBytes(int);
[C++] public: static unsigned char* GetBytes(int) [];
[JScript] public static function GetBytes(int) : Byte[];
BitConverter Class | BitConverter Members | System Namespace