Skip to content

Commit

Permalink
Mark stream-only fields as such.
Browse files Browse the repository at this point in the history
  • Loading branch information
gendx committed May 6, 2024
1 parent d742ea0 commit d4fe124
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/decode/lzbuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ where
fn append_lz(&mut self, len: usize, dist: usize) -> error::Result<()>;

/// Get a reference to the output sink.
#[cfg(feature = "stream")]
fn get_output(&self) -> &W;

/// Get a mutable reference to the output sink.
#[cfg(feature = "stream")]
fn get_output_mut(&mut self) -> &mut W;

/// Consumes this buffer and flushes any data.
fn finish(self) -> io::Result<W>;

/// Consumes this buffer without flushing any data.
#[cfg(feature = "stream")]
fn into_output(self) -> W;
}

Expand Down

0 comments on commit d4fe124

Please sign in to comment.