package obus
Pure Ocaml implementation of the D-Bus protocol
Install
Dune Dependency
Authors
Maintainers
Sources
1.2.2.tar.gz
sha256=3bf0aeb00bf90cd4111483b37cefcb39af38ad6db1aeb6949a2fbecc13ff9a90
md5=7dd48f9bde3e069898fa08e9972596b5
doc/obus.internals/OBus_util/index.html
Module OBus_util
This module contain various functions used by both the library and the tools
find_map f l
Apply f
on each element of l
until it return Some x
and return that result or return None
filter_map f l
apply f
on each element of l
and return the list ef element for which f
succeed (i.e. return Some x
)
part_map f l
apply f
on each element of l
and return the list of success and the list of failure
val split : ('a -> ('b, 'c) either) -> 'a list -> 'b list * 'c list
Split a list
A hex-encoded string is a string where each character is replaced by two hexadecimal characters which represent his ascii code
Random number generation
All the following functions try to generate random numbers using /dev/urandom and can fallback to pseudo-random generator
fill_random str ofs len
Fill the given string from ofs
to ofs+len-1
with random bytes.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page