Object identifiers
type t = oidOIDs are conceptually a sequence of non-negative integers, called nodes.
Every OID has at least two nodes.
val hash : t -> intval seeded_hash : int -> t -> intConstruction
val base : int -> int -> tbase n1 n2 is the OID n1.n2.
Either n1 is [0..1] and n2 is [0..39] (inclusive), or n1 is 2 and n2 is non-negative.
- raises Invalid_argument
if the components are out of range.
oid <|| ns is the old oid.n1.n2. ... if ns is [n1; n2; ...].
- raises Invalid_argument
if any of
nsis negative.
Conversion
val to_nodes : t -> int * int * int listto_nodes oid are the nodes this oid consists of. Every OID has at least two nodes; the rest are collected in the list.
val of_nodes : int -> int -> int list -> t optionval pp : Stdlib.Format.formatter -> t -> unitpp ppf oid pretty-prints oid on ppf as dotted-decimal.
val of_string : string -> t optionof_string s is the OID represented by s, or None, if s is not dotted-decimal or the components are out of range.