Dim bin3 As Byte() = {&H12, &H34, &H56, &H78} Dim bin2 As Byte() = {&H65, &H43} Dim bin1 As Byte() = {&H78} Dim i5 As Short = BitConverter.ToInt16(bin3, 0) '13330 (&H3412) になる Dim i4 As Short = BitConverter.ToInt16(bin3, 1) '22068 (&H5634) になる Dim i3 As Short = BitConverter.ToInt16(bin3, 2) '30806 (&H7856) になる Dim i2 As Short = BitConverter.ToInt16(bin2, 0) '17253 (&H4365) になる Dim i1 As Short = BitConverter.ToInt16(bin1, 0) '長さが足りないのでエラー Dim i0 As Short = BitConverter.ToInt16(bin3, 3) '長さが足りないのでエラー