Convert byte arrays to and from human-readable strings
| C# | Visual Basic | Visual C++ |
public static class ByteFormat
Public NotInheritable Class ByteFormat
public ref class ByteFormat abstract sealed
| All Members | Methods | ||||
| Icon | Member | Description |
|---|---|---|
| bytesToWords(array<Byte>[]()[]) |
Converts word array to byte array
| |
| FromHex(String) |
Convert human-readable hex string to byte array;
e.g., 123456 or 0x123456 -> {0x12, 0x34, 0x56};
| |
| ToHex(array<Byte>[]()[]) |
Convert byte array to human-readable hex string; e.g., {0x12, 0x34, 0x56} -> 123456
| |
| ToHex(array<Byte>[]()[], String, String) |
Convert byte array to human-readable hex string; e.g., {0x12, 0x34, 0x56} -> 123456
| |
| ToHex(array<UInt16>[]()[]) |
Convert u16 array to human-readable hex string; e.g., {0x1234, 0x5678} -> 12345678
| |
| wordsToBytes(array<UInt16>[]()[]) |
Converts byte array to word array
|
| Object | |
| ByteFormat | |