package albatross
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Albatross - orchestrate and manage MirageOS unikernels with Solo5
Install
dune-project
Dependency
Authors
Maintainers
Sources
albatross-2.6.2.tbz
sha256=e7d01a72f14498a0239cac19ffe095cc874d8b2998734e59ff7f03ebe00d42dd
sha512=6afc25fd541b4629c87bb1d3b611a8017dcf920f1f397ee4cb3d2bb1bb86f7117497ac14899aa964d44fa211fb5af02a9c67281a92605c3f4533f52423987cc7
doc/src/albatross/vmm_compress.ml.html
Source file vmm_compress.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 34let compress ~level input = let w = De.Lz77.make_window ~bits:15 in let q = De.Queue.create 0x1000 in let i = Bigstringaf.create De.io_buffer_size in let o = Bigstringaf.create De.io_buffer_size in let b = Buffer.create 0x1000 in let pos = ref 0 in let refill i = let len = min (Bigstringaf.length i) (String.length input - !pos) in Bigstringaf.blit_from_string input ~src_off:!pos i ~dst_off:0 ~len ; pos := !pos + len ; len in let flush o len = let str = Bigstringaf.substring o ~off:0 ~len in Buffer.add_string b str in Zl.Higher.compress ~level ~w ~q ~refill ~flush i o ; Buffer.contents b let uncompress input = let w = De.make_window ~bits:15 in let allocate _ = w in let i = Bigstringaf.create De.io_buffer_size in let o = Bigstringaf.create De.io_buffer_size in let b = Buffer.create 0x1000 in let pos = ref 0 in let refill i = let len = min (Bigstringaf.length i) (String.length input - !pos) in Bigstringaf.blit_from_string input ~src_off:!pos i ~dst_off:0 ~len ; pos := !pos + len ; len in let flush o len = let str = Bigstringaf.substring o ~off:0 ~len in Buffer.add_string b str in match Zl.Higher.uncompress ~allocate ~refill ~flush i o with | Ok () -> Ok (Buffer.contents b) | Error _ as e -> e
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>