James Bielman d2b4cc3870 RingBuf: Fix edge cases with mark/reset.
- This fixes #25 and fixes #26.

- Move the mark state into a 'Mark' enum.

- Store both 'pos' and 'len' inside the mark because both
  are needed to distinguish between full/empty states. This
  fixes 'reset' setting 'len' to zero when the buffer was
  full when marked.

- Clear the mark when the length of the marked input range
  exceeds the capacity. Fixes bugs with the mark not being
  cleared correctly on writes.

- Add test cases.
2015-06-02 23:51:57 -07:00
2015-02-09 22:20:55 -08:00
2015-01-30 00:04:33 -08:00
2015-02-09 22:40:19 -08:00
2015-05-12 22:26:53 -07:00
2015-02-09 22:40:19 -08:00
2015-02-09 22:53:22 -08:00
2015-05-19 17:13:21 -07:00

Bytes

A utility library for working with bytes.

crates.io Build Status Windows Build Status

Usage

To use bytes, first add this to your Cargo.toml:

[dependencies.bytes]
git = "https://github.com/carllerche/bytes"
S
Description
Utilities for working with bytes
Readme MIT
4.5 MiB
Languages
Rust 99.6%
Shell 0.4%