package camlimages

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

Module UtilSource

Bytes and Strings

In 4.02.0, s.[i] <- c becomes deprecated and this is very frustrating for CamlImages.

We introduce (<<) and replace them by s << i & c.

Sourceval (&) : ('a -> 'b) -> 'a -> 'b
Sourceval (<<) : bytes -> int -> char -> unit

equivalent with Bytes.set

Sourceval (<<!) : bytes -> int -> char -> unit

equivalent with Bytes.unsafe_set

Sourceval range_check : bytes -> int -> int -> unit

range_check bs from to_ raises Invalid_argument "index out of bounds" when from and to_ are invalid range for bs.

Sourceval (>@!) : 'a array -> int -> 'a

equivalent with Array.unsafe.get

Sourceval (@%) : bytes -> int -> int

s @% p = Char.code @@ Bytes.get s p

OCaml

Innovation. Community. Security.