package core

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Blit copies between iobufs and advances neither src nor dst.

type 'rw t_no_seek = ('rw, no_seek) t
val sub : ([> Core_kernel.Perms.Read.t ], no_seek) t -> pos:int -> len:int -> (_, _) t

Override types of sub and subo to allow return type to have seek as needed.

val subo : ?pos:int -> ?len:int -> ([> Core_kernel.Perms.Read.t ], no_seek) t -> (_, _) t
val blit_maximal : src:[> Core_kernel.Perms.Read.t ] t_no_seek -> ?src_pos:int -> dst:[> Core_kernel.Perms.Write.t ] t_no_seek -> ?dst_pos:int -> unit -> int

Copies as much as possible (returning the number of bytes copied) without running out of either buffer's window.

OCaml

Innovation. Community. Security.