algorithm/buf/
mod.rs

1// Copyright 2022 - 2023 Wenmeng See the COPYRIGHT
2// file at the top-level directory of this distribution.
3//
4// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5// http://www.apache.org/licenses/LICENSE-2.0>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8//
9// Author: tickbh
10// -----
11// Created Date: 2023/08/28 09:38:10
12
13// copy a large content from bytes.
14
15mod binary;
16mod binary_mut;
17mod binary_ref;
18mod bt;
19mod bt_mut;
20
21pub use binary::Binary;
22pub use binary_mut::BinaryMut;
23pub use binary_ref::BinaryRef;
24pub use bt::Bt;
25pub use bt_mut::BtMut;
26
27fn panic_advance(cnt: usize, left: usize) {
28    panic!("当前只剩余:{},无法消耗:{}", left, cnt);
29}