signinum-core 0.5.0

Shared decode contracts and types for signinum
Documentation
1
2
3
4
5
6
7
8
9
// SPDX-License-Identifier: Apache-2.0

/// Caller-owned reusable scratch allocations for codec implementations.
pub trait ScratchPool: Send {
    /// Return the number of bytes currently retained by the pool.
    fn bytes_allocated(&self) -> usize;
    /// Clear reusable allocations or cached state held by the pool.
    fn reset(&mut self);
}