MCPcopy Create free account
hub / github.com/dropbox/divans / ByteQueue

Interface ByteQueue

src/arithmetic_coder.rs:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17use interface::{ArithmeticEncoderOrDecoder, ReadableBytes, WritableBytes};
18use super::DivansResult;
19pub trait ByteQueue {
20 #[inline(always)]
21 fn num_push_bytes_avail(&self) -> usize;
22 #[inline(always)]
23 fn num_pop_bytes_avail(&self) -> usize;
24 #[inline(always)]
25 fn push_data(&mut self, &[u8]) -> usize;
26 #[inline(always)]
27 fn pop_data(&mut self, &mut [u8]) -> usize;
28}
29
30
31pub type FixedRegister = u64;

Callers

nothing calls this directly

Implementers 2

arithmetic_coder.rssrc/arithmetic_coder.rs
ans.rssrc/ans.rs

Calls

no outgoing calls

Tested by

no test coverage detected