let input_s32 iz =
let b1 = input_u8 iz in
let b2 = input_u8 iz in
let b3 = input_u8 iz in
let b4 = input_u8 iz in
Int32.logor (Int32.of_int b1)
(Int32.logor (Int32.shift_left (Int32.of_int b2) 8)
(Int32.logor (Int32.shift_left (Int32.of_int b3) 16)
(Int32.shift_left (Int32.of_int b4) 24)))