mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-08 04:05:30 -05:00
blit into qtest
This commit is contained in:
parent
c22a33c405
commit
a2a6d28229
1 changed files with 10 additions and 0 deletions
|
|
@ -341,6 +341,16 @@ struct
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
(*$Q
|
||||||
|
Q.printable_string (fun s -> \
|
||||||
|
let b = ByteBuffer.create (Bytes.length s) in \
|
||||||
|
ByteBuffer.blit_from b s 0 (Bytes.length s); \
|
||||||
|
let to_buf = Bytes.create (Bytes.length s) in \
|
||||||
|
let len = ByteBuffer.blit_into b to_buf 0 (Bytes.length s) in \
|
||||||
|
to_buf = s && len = Bytes.length s)
|
||||||
|
*)
|
||||||
|
|
||||||
|
|
||||||
let clear b =
|
let clear b =
|
||||||
b.stop <- 0;
|
b.stop <- 0;
|
||||||
b.start <- 0;
|
b.start <- 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue