Package: wnpp Severity: wishlist Owner: Stéphane Glondu <[email protected]> X-Debbugs-Cc: [email protected], [email protected]
* Package name : ocaml-bstr Version : 0.1.1 Upstream Contact: Romain Calascibetta * URL : https://github.com/robur-coop/bstr * License : MIT Programming Lang: OCaml Description : simple library for OCaml bigstrings This small set of libraries offers a homogeneous API between 2 types and their derivations with the slice type, as well as a small DSL for decoding "packets" (such as ARP or DNS) without too much difficulty. . The aim is to homogenize the 2 types bytes and bigstring and to derive them with a slice type, giving the user all the levers needed to manipulate byte sequences, whether in the form of a bigstring or bytes. The slice view avoids copying when it comes to decoding a packet and extracting a sub-part. The slice also applies to bigstrings, whose Bigarray.Array1.sub is more expensive. . This set of libraries is a synthesis of astring (which offers a range of useful functions as well as slice), cstruct (which offers a similar API for bigstrings), bigstringaf (which offers some other useful functions), the standard OCaml library and repr for decoding/encoding these values into OCaml records/variants. This package is a new (transitive) (test) dependency of opam. It will be maintained in the OCaml team.

