package opentelemetry
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Core library for instrumentation and serialization for https://opentelemetry.io
Install
dune-project
Dependency
Authors
Maintainers
Sources
opentelemetry-0.91.1.tbz
sha256=30f344e7168a793d02c12d69c0f566b06eb963f52db3321e415ef6c5cd3d504d
sha512=19160da37cab59a23333d815baa67035f666e700a386953ec9957c685a0b72fa87919bac6a6651e50b1619773b3be7170bcc067c2d5316436b988bcf8d18dcba
doc/src/opentelemetry.util/util_bytes_.ml.html
Source file util_bytes_.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49open struct let spf = Printf.sprintf end let int_to_hex (i : int) = if i < 10 then Char.chr (i + Char.code '0') else Char.chr (i - 10 + Char.code 'a') let bytes_to_hex_into b res off : unit = for i = 0 to Bytes.length b - 1 do let n = Char.code (Bytes.get b i) in Bytes.set res ((2 * i) + off) (int_to_hex ((n land 0xf0) lsr 4)); Bytes.set res ((2 * i) + 1 + off) (int_to_hex (n land 0x0f)) done let bytes_to_hex (b : bytes) : string = let res = Bytes.create (2 * Bytes.length b) in bytes_to_hex_into b res 0; Bytes.unsafe_to_string res let int_of_hex = function | '0' .. '9' as c -> Char.code c - Char.code '0' | 'a' .. 'f' as c -> 10 + Char.code c - Char.code 'a' | c -> raise (Invalid_argument (spf "invalid hex char: %C" c)) let bytes_of_hex_substring (s : string) off len = if len mod 2 <> 0 then raise (Invalid_argument "hex sequence must be of even length"); let res = Bytes.make (len / 2) '\x00' in for i = 0 to (len / 2) - 1 do let n1 = int_of_hex (String.get s (off + (2 * i))) in let n2 = int_of_hex (String.get s (off + (2 * i) + 1)) in let n = (n1 lsl 4) lor n2 in Bytes.set res i (Char.chr n) done; res let bytes_of_hex (s : string) : bytes = bytes_of_hex_substring s 0 (String.length s) let bytes_non_zero (self : bytes) : bool = try for i = 0 to Bytes.length self - 1 do if Char.code (Bytes.unsafe_get self i) <> 0 then raise_notrace Exit done; false with Exit -> true
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>