Module Iobuf.With_shallow_sexp

type nonrec ('rw, 'seek, 'loc) t = ('rw, 'seek, 'loc) t

With_shallow_sexp.t has a sexp_of that shows the windows and limits of the underlying bigstring, but no data. We do this rather than deriving sexp_of on t because it is much more likely to be noise than useful information, and so callers should probably not display the iobuf at all.

val sexp_of_t : ('rw -> Sexplib0.Sexp.t) -> ('seek -> Sexplib0.Sexp.t) -> ('loc -> Sexplib0.Sexp.t) -> ('rw, 'seek, 'loc) t -> Sexplib0.Sexp.t
val globalize : [ `deprecated ]
  • deprecated [since 2025-09] use [Iobuf.globalize_shared] instead