j2k-core 0.6.1

Shared codec contracts and backend types for j2k
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);
}