let get_uint16 buf off = (if (off < 0) || (off > ((Bigarray.Array1.dim buf) - 2)) then raise (Invalid_argument "index out of bounds") else (); unsafe_get_uint16 buf off)