#buffer #dynamic #paper #byte #readable #writable #p1790r0

dyn_buf

A dynamic buffer v1 (p1790r0) implement in Rust

1 unstable release

0.1.0 Jul 16, 2021

#7 in #writable

Download history 328/week @ 2024-06-03 169/week @ 2024-06-10 248/week @ 2024-06-17 169/week @ 2024-06-24 288/week @ 2024-07-01 183/week @ 2024-07-08 224/week @ 2024-07-15 86/week @ 2024-07-22 88/week @ 2024-07-29 677/week @ 2024-08-05 285/week @ 2024-08-12 572/week @ 2024-08-19 286/week @ 2024-08-26 287/week @ 2024-09-02 113/week @ 2024-09-09 38/week @ 2024-09-16

816 downloads per month
Used in 3 crates (2 directly)

MIT license

8KB
89 lines

dyn_buf_rs

A dynamic buffer v1 implement in Rust.

The dynamic buffer v1 was proposed in ISO C++ Paper p1790r0


lib.rs:

A dynamic buffer encapsulates memory storage that may be automatically resized as required, where the memory is divided into two regions: readable bytes followed by writable bytes. These memory regions are internal to the dynamic buffer, but direct access to the elements is provided to permit them to be efficiently used with I/O operations.

Note: Such as the send or receive operations of a socket. The readable bytes would be used as
the constant buffer sequence for send, and the writable bytes used as the mutable buffer
sequence for receive.

Data written to the writable bytes of a dynamic buffer object is appended to the readable bytes of the same object.

No runtime deps