Convert numeric fields within M5e messages
| C# | Visual Basic | Visual C++ |
public static class ByteConv
Public NotInheritable Class ByteConv
public ref class ByteConv abstract sealed
| All Members | Methods | ||||
| Icon | Member | Description |
|---|---|---|
| BytesPerBits(Int32) |
Calculate number of bytes required to hold number of bits
| |
| ConvertFromUshortArray(array<UInt16>[]()[]) |
convert a ushort array to byte array
| |
| EncodeS16(Int16) |
Create byte array that represents signed 16-bit integer
| |
| EncodeU16(UInt16) |
Create byte array that represents unsigned 16-bit integer
| |
| EncodeU32(UInt32) |
Create byte array that represents unsigned 32-bit integer
| |
| EncodeU64(UInt64) |
Create byte array that represents unsigned 64-bit integer
| |
| FromS16(array<Byte>[]()[], Int32, Int16) |
Insert signed 16-bit integer into big-endian byte string
| |
| FromU16(array<Byte>[]()[], Int32, UInt16) |
Insert unsigned 16-bit integer into big-endian byte string
| |
| FromU32(array<Byte>[]()[], Int32, UInt32) |
Insert unsigned 32-bit integer into big-endian byte string
| |
| FromU64(array<Byte>[]()[], Int32, UInt64) |
Insert unsigned 64-bit integer into big-endian byte string
| |
| GetBits(UInt64, Int32, Int32) |
Get bits within an integer; e.g., GetBits(0x1234, 4, 4) returns 0x3
| |
| GetU24(array<Byte>[]()[], Int32) |
Extract integer from big-endian byte string
| |
| GetU8(array<Byte>[]()[], Int32) |
Extract integer from big-endian byte string
| |
| MakeBitMask(Int32, Int32) |
Create bitmask with specified position and size; e.g., MakeBitMask(3, 2) returns 0x18
| |
| SetBits(UInt64%, Int32, Int32, UInt64, String) |
Set bits within an integer.
| |
| SetBits(UInt32%, Int32, Int32, UInt32, String) |
Set bits within an integer.
| |
| SetBits(UInt16%, Int32, Int32, UInt16, String) |
Set bits within an integer.
| |
| ToAscii(array<Byte>[]()[], Int32, Int32) |
Extract ASCII string from byte string
| |
| ToU16(array<Byte>[]()[], Int32%) |
Extract unsigned 16-bit integer from big-endian byte string
| |
| ToU16(array<Byte>[]()[], Int32) |
Extract unsigned 16-bit integer from big-endian byte string
| |
| ToU16s(ICollection<(Of <(Byte>)>)) |
Convert byte array to u16 array
| |
| ToU32(array<Byte>[]()[], Int32) |
Extract unsigned 32-bit integer from big-endian byte string
| |
| ToU64(array<Byte>[]()[], Int32) |
Extract unsigned 64-bit integer from big-endian byte string
| |
| WordsPerBytes(Int32) |
Calculate number of 16-bit words required to contain number of bytes
|
| Object | |
| ByteConv | |