package wayland

  1. Overview
  2. Docs
Pure OCaml Wayland protocol library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

wayland-2.2.tbz
sha256=0f882060a4cfe9424ed397676b8e2aaa931d84610beb29cb2ec9c355d1819625
sha512=847781a3d274da7463ad1a2e46bada3663b8dee08fa576ad787e7ba35cb0f39a3e1a0e6e9729db2f643885a35ae32ece0358c5897d31b68907cad44f1b26af31

doc/src/wayland/fixed.ml.html

Source file fixed.ml

1
2
3
4
5
6
7
8
9
type t = int32

let of_int i = Int32.shift_left (Int32.of_int i) 8
let to_int t = Int32.to_int (Int32.shift_right t 8)

let of_bits = Fun.id
let to_bits = Fun.id

let pp f t = Fmt.pf f "%lx" t
OCaml

Innovation. Community. Security.