pellest/src/network.ml

6 lines
153 B
OCaml
Raw Normal View History

2022-12-11 18:58:56 +01:00
let marshal o = Marshal.to_string o [] |> Format.sprintf "%S"
let unmarshal o =
let s = Scanf.sscanf o "%S" (fun s -> s) in
Marshal.from_string s 0