package camlimages

  1. Overview
  2. Docs
Image processing library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

camlimages-5.0.5.tar.gz
md5=84929b30257aa8e493dc84303768f400
sha512=b3774d2287e4a97082f0289766f5a79d3e75454a194d2d6400cee9cf926f7676d8eba4cb27221a98314461b7a81b4386b253f1d706a94447423394be89d2ed49

doc/camlimages.core/Util/index.html

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