Module Base__.Blit_intf
type ('src, 'dst) blit= src:'src -> src_pos:int -> dst:'dst -> dst_pos:int -> len:int -> unitIf
blit : (src, dst) blit, thenblit ~src ~src_pos ~len ~dst ~dst_posblitslenvalues fromsrcstarting at positionsrc_postodstat positiondst_pos. Furthermore,blitraises ifsrc_pos,len, anddst_posdon't specify valid slices ofsrcanddst.
type ('src, 'dst) blito= src:'src -> ?src_pos:int -> ?src_len:int -> dst:'dst -> ?dst_pos:int -> unit -> unitblitois likeblit, except that thesrc_pos,src_len, anddst_posare optional (hence the "o" in "blito"). Also, we usesrc_lenrather thanlenas a reminder that ifsrc_lenisn't supplied, then the default is to take the slice running fromsrc_posto the end ofsrc.
type ('src, 'dst) sub= 'src -> pos:int -> len:int -> 'dstIf
sub : (src, dst) sub, thensub ~src ~pos ~lenreturns a sequence of typedstcontaininglencharacters ofsrcstarting atpos.subois likesub, exceptposandlenare optional.
module type S = sig ... endmodule type S1 = sig ... endmodule type S_distinct = sig ... endmodule type S1_distinct = sig ... endmodule type S_to_string = sig ... endmodule type Sequence = sig ... endmodule type Sequence1 = sig ... endmodule type Blit = sig ... end