kochedykov / jlibmodbus

JLibModbus - is an implementation of the Modbus protocol v1.1b in java language. Java modbus library. It works. Welcome.
http://kochedykov.github.io/jlibmodbus/
Apache License 2.0
299 stars 128 forks source link

fix(util): The problem of transforming byte[] into int[] #65

Closed danghongen closed 1 year ago

danghongen commented 3 years ago

Int in Java is the 32 bit basic data type, and byte is the data type of 8 bits. So when the byte array is turned to int, should it be 4 byte bytes converted to one data