Bytesrw adapter for Eio
ocaml codec
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+22 -6
+15 -6
README.md
··· 26 26 27 27 ```ocaml 28 28 (* Specify custom slice length for reading *) 29 - let reader = Bytesrw_eio.bytes_reader_of_flow ~slice_length:4096 flow in 29 + let reader flow = Bytesrw_eio.bytes_reader_of_flow ~slice_length:4096 flow 30 30 31 31 (* Specify custom slice length for writing *) 32 - let writer = Bytesrw_eio.bytes_writer_of_flow ~slice_length:4096 flow in 33 - () 32 + let writer flow = Bytesrw_eio.bytes_writer_of_flow ~slice_length:4096 flow 34 33 ``` 35 34 36 35 For random-access file reading: 37 36 38 37 ```ocaml 39 38 (* Read from a specific offset in a file *) 40 - let reader = Bytesrw_eio.pread_reader ~offset:1024 file in 41 - () 39 + let reader file = Bytesrw_eio.pread_reader ~offset:1024 file 42 40 ``` 43 41 44 42 ## Installation 45 43 44 + Install with opam: 45 + 46 + ```sh 47 + $ opam install bytesrw-eio 46 48 ``` 47 - opam install bytesrw-eio 49 + 50 + If opam cannot find the package, it may not yet be released in the public 51 + `opam-repository`. Add the overlay repository, then install it: 52 + 53 + ```sh 54 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 55 + $ opam update 56 + $ opam install bytesrw-eio 48 57 ``` 49 58 50 59 ## Documentation
+1
bytesrw-eio.opam
··· 16 16 "eio" {>= "1.0"} 17 17 "odoc" {with-doc} 18 18 "alcotest" {with-test & >= "1.7.0"} 19 + "mdx" {with-test} 19 20 "eio_main" {with-test} 20 21 ] 21 22 build: [
+4
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files README.md) 7 + (libraries bytesrw-eio eio))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 (name bytesrw-eio) 3 4 4 5 (generate_opam_files true) ··· 19 20 (eio (>= 1.0)) 20 21 (odoc :with-doc) 21 22 (alcotest (and :with-test (>= 1.7.0))) 23 + (mdx :with-test) 22 24 (eio_main :with-test)))