package camlimages

  1. Overview
  2. Docs
Image processing library

Install

Dune Dependency

Authors

Maintainers

Sources

camlimages-5.0.1.tar.bz2
sha256=fea0bbb53746a29fb546946d34d43ed0907db8326ff95004a11f7ea666f8d541
md5=c06eec6b0e12a993d4677203e733512a

doc/camlimages.core/Util/index.html

Module Util

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.

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

equivalent with Bytes.set

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

equivalent with Bytes.unsafe_set

val 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.

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

equivalent with Array.unsafe.get

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

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

OCaml

Innovation. Community. Security.