update doc and aliases

This commit is contained in:
Simon Cruanes 2022-02-08 12:58:08 -05:00
parent b42b1f4907
commit d7214345e5
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
3 changed files with 7 additions and 3 deletions

View file

@ -431,7 +431,7 @@ map =
- : string option = Some "33"
```
### New types: `CCVector`, `CCHeap`, `CCResult`, `CCSexp`
### New types: `CCVector`, `CCHeap`, `CCResult`, `CCSexp`, `CCByte_buffer`
Containers also contains (!) a few datatypes that are not from the standard
library but that are useful in a lot of situations:
@ -458,6 +458,10 @@ library but that are useful in a lot of situations:
functorized printer and parser for S-expressions, respectively as
actual S-expressions (like `sexplib`) and as canonical binary-safe
S-expressions (like `csexp`)
- `CCByte_buffer`: a better version of the standard `Buffer.t` which cannot be
extended and prevents access to its internal byte array. This type is
designed for (blocking) IOs and to produce complex strings incrementally
in an efficient way.
Now for a few examples:

View file

@ -5,7 +5,7 @@
module Array = CCArray
module Bool = CCBool
module Byte_buf = CCByte_buf
module Byte_buffer = CCByte_buffer
module Char = CCChar
module Equal = CCEqual
module Either = CCEither

View file

@ -5,7 +5,7 @@
module Array = CCArrayLabels
module Bool = CCBool
module Byte_buf = CCByte_buf
module Byte_buffer = CCByte_buffer
module Char = CCChar
module Equal = CCEqualLabels
module Either = CCEither