mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 19:25:28 -05:00
formatting
This commit is contained in:
parent
8d814d4feb
commit
a1ca8ff831
1 changed files with 13 additions and 13 deletions
|
|
@ -203,13 +203,13 @@ struct
|
|||
let copy b =
|
||||
{ b with buf=Array.copy b.buf; }
|
||||
|
||||
(*$T
|
||||
(*$T
|
||||
let b = ByteBuffer.create 3 in \
|
||||
let s = Bytes.of_string "hello world" in \
|
||||
ByteBuffer.blit_from b s 0 (Bytes.length s); \
|
||||
let b' = ByteBuffer.copy b in \
|
||||
try ByteBuffer.iteri b (fun i c -> if ByteBuffer.get_front b' i <> c then raise Exit); true with Exit -> false
|
||||
*)
|
||||
*)
|
||||
|
||||
|
||||
let capacity b = Array.length b.buf
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue