qubit-io 0.8.0

Byte-stream buffering and std::io utilities for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// =============================================================================
//    Copyright (c) 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================

/// Default capacity used by [`BufferedInput`] and [`BufferedOutput`].
///
/// The value is intentionally shared by input and output buffering so callers
/// can rely on the same default behavior when they construct buffered byte
/// wrappers with `new`.
///
/// [`BufferedInput`]: crate::buffered::BufferedInput
/// [`BufferedOutput`]: crate::buffered::BufferedOutput
pub const DEFAULT_BUFFER_CAPACITY: usize = 8 * 1024;