package obus
Pure Ocaml implementation of the D-Bus protocol
Install
Dune Dependency
Authors
Maintainers
Sources
obus-1.2.5.tar.gz
md5=81eb1034c6ef4421a2368a9b352199de
sha512=4b540497188a7d78f4f14f94c6b7fdff47dd06436a34e650ff378dd77bb3e2acb7afd45cd72daf4ddba06e732e9944d560c2882dc37862f1b1f1bb6df37e6205
doc/obus.internals/OBus_string/index.html
Module OBus_string
Source
Restriction on strings used with D-Bus
There are a lot of restrictions for strings used in D-Bus. OBus only verifies strings when a message is sent or received
Source
type error = {
typ : string;
(*Type of string ("string", "bus name", "error name", "path", ...)
*)str : string;
(*The string which fail to validate
*)ofs : int;
(*is the position in bytes where the validation failed
*)msg : string;
(*explains why the string failed to validate
*)
}
Error projections
Validators
Tests if a string is correct.
- if it is, returns
None
- if not, returns
Some(ofs, msg)
Raises Invalid_string
if the given string failed to validate
Common strings
Type for common strings, restrictions are:
- a string must be encoded in valid UTF-8
- a string must not contains the null byte
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page