Home
last modified time | relevance | path

Searched refs:GrpcSlice (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/grpcio/src/
Dbuf.rs19 pub struct GrpcSlice(grpc_slice); struct
21 impl GrpcSlice { impl
55 pub fn from_static_slice(s: &'static [u8]) -> GrpcSlice { in from_static_slice() argument
56 GrpcSlice(unsafe { grpc_slice_from_static_buffer(s.as_ptr() as _, s.len()) }) in from_static_slice()
63 pub fn from_static_str(s: &'static str) -> GrpcSlice { in from_static_str() argument
64 GrpcSlice::from_static_slice(s.as_bytes()) in from_static_str()
83 *self = GrpcSlice::default(); in realloc()
91 *self = GrpcSlice(grpcio_sys::grpc_slice_malloc_large(cap)); in realloc()
103 impl Clone for GrpcSlice { implementation
109 GrpcSlice(unsafe { grpc_slice_ref(self.0) }) in clone()
[all …]
Dcodec.rs3 use crate::buf::GrpcSlice;
8 pub type SerializeFn<T> = fn(&T, &mut GrpcSlice);
33 use crate::buf::GrpcSlice;
37 pub fn ser<T: Message>(t: &T, buf: &mut GrpcSlice) { in ser() argument
61 use crate::buf::GrpcSlice;
65 pub fn ser<M: Message>(msg: &M, buf: &mut GrpcSlice) { in ser() argument
Dlib.rs46 pub use crate::buf::GrpcSlice;
/external/rust/crates/grpcio/src/call/
Dmod.rs19 use crate::buf::{GrpcByteBuffer, GrpcByteBufferReader, GrpcSlice};
296 msg: &mut GrpcSlice, in start_send_message() argument
349 payload: &mut Option<GrpcSlice>, in start_send_status_from_server() argument
633 buffer: GrpcSlice,
645 buffer: GrpcSlice::default(), in new()
735 self.buffer = GrpcSlice::default(); in start_send_buffer_message()
Dclient.rs17 use crate::buf::GrpcSlice;
112 let mut payload = GrpcSlice::default(); in unary_async()
165 let mut payload = GrpcSlice::default(); in server_streaming()
Dserver.rs21 use crate::buf::GrpcSlice;
362 let mut buf = GrpcSlice::default();