Home
last modified time | relevance | path

Searched refs:DecodeBuf (Results 1 – 7 of 7) sorted by relevance

/tonic/tonic/src/codec/
H A Dbuffer.rs6 pub struct DecodeBuf<'a> { struct
17 impl<'a> DecodeBuf<'a> { argument
19 DecodeBuf { buf, len } in new()
23 impl Buf for DecodeBuf<'_> { implementation
116 let mut buf = DecodeBuf::new(&mut payload, 20); in decode_buf()
H A Dmod.rs16 pub use self::buffer::{DecodeBuf, EncodeBuf};
153 fn decode(&mut self, src: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error>; in decode()
H A Dprost.rs1 use super::{BufferSettings, Codec, DecodeBuf, Decoder, Encoder};
131 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode()
154 DecodeBuf, Decoder, EncodeBody, EncodeBuf, Encoder, Streaming, HEADER_SIZE,
338 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode()
H A Ddecode.rs2 use super::{BufferSettings, DecodeBuf, Decoder, DEFAULT_MAX_RECV_MESSAGE_SIZE, HEADER_SIZE};
150 ) -> Result<Option<DecodeBuf<'_>>, Status> { in decode_chunk()
236 DecodeBuf::new(&mut self.decompress_buf, decompressed_len) in decode_chunk()
238 DecodeBuf::new(&mut self.buf, len) in decode_chunk()
/tonic/examples/src/json-codec/
H A Dcommon.rs9 codec::{Codec, DecodeBuf, Decoder, EncodeBuf, Encoder},
42 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode()
/tonic/tonic/benches/
H A Ddecode.rs11 use tonic::{codec::DecodeBuf, codec::Decoder, Status, Streaming};
106 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode()
/tonic/
H A DCHANGELOG.md601 * **codec:** Add new `Decoder/Encoder` traits and use `EncodeBuf/DecodeBuf` over `BytesMut` directl…