let get_int8 str off =
      (if (off < 0) || (off >= (String.length str))
       then raise (Invalid_argument "index out of bounds")
       else ();
       unsafe_get_int8 str off)