Dim bc As ByteConverter
Dim bytes() As Byte = bc.IntsToBytes(Array As Int(999999))
'As long as we feed IntsToBytes only one integer, we will get back 4 bytes. Since, in this case, the largest integer will
'be 999999, we can skip bytes(0) and only use bytes(1), bytes(2), and bytes(3)
Dim packet () As Byte = Array As Byte (0x5A, 0xA5, 0x06, 0x83, 0x00, 0x99, bytes(1), bytes(2), bytes(3))