docs(tvix/nix-compat): add missing reference to BytesReader
Change-Id: Ideed83d191b55e131720e598b7591e8375a26cfd Reviewed-on: https://cl.tvl.fyi/c/depot/+/11510 Tested-by: BuildkiteCI Reviewed-by: edef <edef@edef.eu> Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
d2e67f021e
commit
2fd9dc11c2
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ const LEN_SIZE: usize = 8;
|
|||
/// On failure (for example if a too large byte packet was sent), the reader
|
||||
/// becomes unusable.
|
||||
///
|
||||
/// This buffers the entire payload into memory, a streaming version will be
|
||||
/// added later.
|
||||
/// This buffers the entire payload into memory,
|
||||
/// a streaming version is available at [crate::wire::bytes::BytesReader].
|
||||
pub async fn read_bytes<R, S>(r: &mut R, allowed_size: S) -> std::io::Result<Vec<u8>>
|
||||
where
|
||||
R: AsyncReadExt + Unpin,
|
||||
|
|
Loading…
Reference in a new issue