Home
last modified time | relevance | path

Searched defs:BytesMut (Results 1 – 25 of 30) sorted by relevance

12

/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/bytes-1.6.0/src/
H A Dbytes_mut.rs61 pub struct BytesMut { struct
62 ptr: NonNull<u8>,
63 len: usize,
64 cap: usize,
65 data: *mut Shared,
124 impl BytesMut { implementation
148 pub fn with_capacity(capacity: usize) -> BytesMut { in with_capacity()
279 pub fn zeroed(len: usize) -> BytesMut { in zeroed()
310 pub fn split_off(&mut self, at: usize) -> BytesMut { in split_off()
353 pub fn split(&mut self) -> BytesMut { in split()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/bytes/src/
Dbytes_mut.rs61 pub struct BytesMut { struct
62 ptr: NonNull<u8>,
63 len: usize,
64 cap: usize,
65 data: *mut Shared,
124 impl BytesMut { impl
148 pub fn with_capacity(capacity: usize) -> BytesMut { in with_capacity()
287 pub fn zeroed(len: usize) -> BytesMut { in zeroed()
320 pub fn split_off(&mut self, at: usize) -> BytesMut { in split_off()
363 pub fn split(&mut self) -> BytesMut { in split()
[all …]
Dbytes.rs641 pub fn try_into_mut(self) -> Result<BytesMut, Bytes> { in try_into_mut()
1030 impl From<Bytes> for BytesMut { implementation
1096 unsafe fn static_to_mut(_: &AtomicPtr<()>, ptr: *const u8, len: usize) -> BytesMut { in static_to_mut()
1149 unsafe fn owned_to_mut(data: &AtomicPtr<()>, ptr: *const u8, len: usize) -> BytesMut { in owned_to_mut()
1248 ) -> BytesMut { in promotable_to_mut()
1278 unsafe fn promotable_even_to_mut(data: &AtomicPtr<()>, ptr: *const u8, len: usize) -> BytesMut { in promotable_even_to_mut()
1315 unsafe fn promotable_odd_to_mut(data: &AtomicPtr<()>, ptr: *const u8, len: usize) -> BytesMut { in promotable_odd_to_mut()
1422 unsafe fn shared_to_mut_impl(shared: *mut Shared, ptr: *const u8, len: usize) -> BytesMut { in shared_to_mut_impl()
1457 unsafe fn shared_to_mut(data: &AtomicPtr<()>, ptr: *const u8, len: usize) -> BytesMut { in shared_to_mut()
/aosp_15_r20/external/rust/android-crates-io/crates/h2/src/hpack/
Dencoder.rs99 fn encode_size_updates(&mut self, dst: &mut BytesMut) { in encode_size_updates()
115 fn encode_header(&mut self, index: &Index, dst: &mut BytesMut) { in encode_header()
160 dst: &mut BytesMut, in encode_header_without_name()
191 fn encode_size_update(val: usize, dst: &mut BytesMut) { in encode_size_update()
195 fn encode_not_indexed(name: usize, value: &[u8], sensitive: bool, dst: &mut BytesMut) { in encode_not_indexed()
205 fn encode_not_indexed2(name: &[u8], value: &[u8], sensitive: bool, dst: &mut BytesMut) { in encode_not_indexed2()
216 fn encode_str(val: &[u8], dst: &mut BytesMut) { in encode_str()
696 fn encode(e: &mut Encoder, hdrs: Vec<Header<Option<HeaderName>>>) -> BytesMut { in encode()
716 fn huff_decode(src: &[u8]) -> BytesMut { in huff_decode()
Ddecoder.rs178 src: &mut Cursor<&mut BytesMut>, in decode()
278 buf: &mut Cursor<&mut BytesMut>, in decode_literal()
306 buf: &mut Cursor<&mut BytesMut>, in try_decode_string()
458 fn take(buf: &mut Cursor<&mut BytesMut>, n: usize) -> Bytes { in take()
479 fn consume(buf: &mut Cursor<&mut BytesMut>) { in consume()
888 fn huff_encode(src: &[u8]) -> BytesMut { in huff_encode()
/aosp_15_r20/external/rust/android-crates-io/crates/tonic/src/codec/
Dcompression.rs201 decompressed_buf: &mut BytesMut, in compress()
202 out_buf: &mut BytesMut, in compress()
241 compressed_buf: &mut BytesMut, in decompress()
242 out_buf: &mut BytesMut, in decompress()
Dencode.rs173 buf: &mut BytesMut, in encode_item()
174 uncompression_buf: &mut BytesMut, in encode_item()
Dbuffer.rs18 pub(crate) fn new(buf: &'a mut BytesMut, len: usize) -> Self { in new()
/aosp_15_r20/external/rust/android-crates-io/crates/tokio-util/src/codec/
Dframed.rs248 pub fn read_buffer(&self) -> &BytesMut { in read_buffer()
253 pub fn read_buffer_mut(&mut self) -> &mut BytesMut { in read_buffer_mut()
258 pub fn write_buffer(&self) -> &BytesMut { in write_buffer()
263 pub fn write_buffer_mut(&mut self) -> &mut BytesMut { in write_buffer_mut()
Dbytes_codec.rs58 fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<BytesMut>, io::Error> { in decode()
81 fn encode(&mut self, data: BytesMut, buf: &mut BytesMut) -> Result<(), io::Error> { in encode()
Dframed_write.rs129 pub fn write_buffer(&self) -> &BytesMut { in write_buffer()
134 pub fn write_buffer_mut(&mut self) -> &mut BytesMut { in write_buffer_mut()
Dframed_read.rs148 pub fn read_buffer(&self) -> &BytesMut { in read_buffer()
153 pub fn read_buffer_mut(&mut self) -> &mut BytesMut { in read_buffer_mut()
Dlength_delimited.rs560 fn decode_data(&self, n: usize, src: &mut BytesMut) -> Option<BytesMut> { in decode_data()
575 fn decode(&mut self, src: &mut BytesMut) -> io::Result<Option<BytesMut>> { in decode()
/aosp_15_r20/external/rust/android-crates-io/crates/h2/src/hpack/huffman/
Dmod.rs20 pub fn decode(src: &[u8], buf: &mut BytesMut) -> Result<BytesMut, DecoderError> { in decode()
43 pub fn encode(src: &[u8], dst: &mut BytesMut) { in encode()
107 fn decode(src: &[u8]) -> Result<BytesMut, DecoderError> { in decode()
/aosp_15_r20/external/rust/android-crates-io/crates/h2/src/frame/
Dheaders.rs151 pub fn load(head: Head, mut src: BytesMut) -> Result<(Self, BytesMut), Error> { in load() argument
217 src: &mut BytesMut, in load_hpack()
410 pub fn load(head: Head, mut src: BytesMut) -> Result<(Self, BytesMut), Error> { in load() argument
464 src: &mut BytesMut, in load_hpack()
841 src: &mut BytesMut, in load()
1047 fn huff_decode(src: &[u8]) -> BytesMut { in huff_decode()
Dsettings.rs213 pub fn encode(&self, dst: &mut BytesMut) { in encode()
339 fn encode(&self, dst: &mut BytesMut) { in encode()
/aosp_15_r20/external/rust/android-crates-io/crates/hyper/src/proto/h1/
Drole.rs64 bytes: &mut BytesMut, in parse_headers()
126 fn parse(buf: &mut BytesMut, ctx: ParseContext<'_>) -> ParseResult<RequestLine> { in parse()
932 fn parse(buf: &mut BytesMut, ctx: ParseContext<'_>) -> ParseResult<StatusCode> { in parse()
2729 fn restart(b: &mut BytesMut, len: usize) { in bench_parse_incoming()
2777 fn restart(b: &mut BytesMut, len: usize) { in bench_parse_short()
/aosp_15_r20/external/uwb/src/rust/uwb_core/src/uci/
H A Dnotification.rs1004 buffer: &mut BytesMut, in write_multicast_ntf_v1_payload()
1013 fn write_v1_controlee_status(status: &ControleeStatusV1, buffer: &mut BytesMut) { in write_v1_controlee_status()
1023 buffer: &mut BytesMut, in write_multicast_ntf_v2_payload()
1031 fn write_v2_controlee_status(status: &ControleeStatusV2, buffer: &mut BytesMut) { in write_v2_controlee_status()
/aosp_15_r20/external/rust/android-crates-io/crates/tokio-util/src/udp/
Dframe.rs235 pub fn read_buffer(&self) -> &BytesMut { in read_buffer()
240 pub fn read_buffer_mut(&mut self) -> &mut BytesMut { in read_buffer_mut()
/aosp_15_r20/external/rust/android-crates-io/crates/combine/src/stream/
Dbuf_reader.rs284 bs: &mut bytes::BytesMut, in tokio_03_read_buf()
317 bs: &mut bytes::BytesMut, in tokio_read_buf()
356 fn extend_buf_sync<R>(buf: &mut BytesMut, read: &mut R) -> io::Result<usize> in extend_buf_sync()
496 buf: &mut BytesMut, in poll_extend_buf()
/aosp_15_r20/external/rust/android-crates-io/crates/h2/src/codec/
Dframed_read.rs127 mut bytes: BytesMut, in decode_frame()
442 src: &mut BytesMut, in load_hpack()
/aosp_15_r20/external/rust/android-crates-io/crates/h2/src/
Dfuzz_bridge.rs23 fn encode(e: &mut hpack::Encoder, hdrs: Vec<hpack::Header<Option<HeaderName>>>) -> BytesMut { in encode()
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/bytes-1.6.0/src/fmt/
H A Ddebug.rs45 impl Debug for BytesMut { implementation
/aosp_15_r20/external/uwb/src/rust/uwb_uci_packets/src/
H A Dlib.rs846 pub fn write_controlee(controlee: &Controlee) -> BytesMut { in write_controlee()
854 pub fn write_controlee_2_0_16byte(controlee: &Controlee_V2_0_16_Byte_Version) -> BytesMut { in write_controlee_2_0_16byte()
863 pub fn write_controlee_2_0_32byte(controlee: &Controlee_V2_0_32_Byte_Version) -> BytesMut { in write_controlee_2_0_32byte()
/aosp_15_r20/external/rust/pica/src/
Dsession.rs105 pub fn data(&self) -> &BytesMut { in data()

12