pub struct StreamSegment {
pub kind: u8,
pub header: ByteBuf,
pub trailer: ByteBuf,
pub corrections: ByteBuf,
pub size: u64,
pub chunks: Vec<u32>,
}Expand description
One segment of a file that embeds zlib/deflate streams (PDF FlateDecode objects and similar).
Fields§
§kind: u80 = literal bytes (chunked as-is), 1 = zlib stream inverted with preflate
header: ByteBufzlib 2-byte header for kind 1 (empty otherwise)
trailer: ByteBufzlib 4-byte Adler-32 trailer for kind 1 (empty otherwise)
corrections: ByteBuf§size: u64Length of the chunked payload (literal bytes or inverted plaintext).
chunks: Vec<u32>Trait Implementations§
Source§impl Clone for StreamSegment
impl Clone for StreamSegment
Source§impl Debug for StreamSegment
impl Debug for StreamSegment
Source§impl<'de> Deserialize<'de> for StreamSegment
impl<'de> Deserialize<'de> for StreamSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StreamSegment
impl RefUnwindSafe for StreamSegment
impl Send for StreamSegment
impl Sync for StreamSegment
impl Unpin for StreamSegment
impl UnsafeUnpin for StreamSegment
impl UnwindSafe for StreamSegment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more