arg name
This commit is contained in:
parent
e15431d04e
commit
1e41cd5dde
1 changed files with 3 additions and 3 deletions
|
@ -27,8 +27,8 @@ let new_buffer size list =
|
||||||
buffer
|
buffer
|
||||||
;;
|
;;
|
||||||
|
|
||||||
let unpack_short_be reader offset =
|
let unpack_short_be data offset =
|
||||||
let msb = int_of_char (Bytes.get reader offset) in
|
let msb = int_of_char (Bytes.get data offset) in
|
||||||
let lsb = int_of_char (Bytes.get reader (offset + 1)) in
|
let lsb = int_of_char (Bytes.get data (offset + 1)) in
|
||||||
(msb lsl 8) + lsb
|
(msb lsl 8) + lsb
|
||||||
;;
|
;;
|
||||||
|
|
Reference in a new issue