Lines Matching refs:GrpcByteBuffer
237 pub struct GrpcByteBuffer(*mut grpc_byte_buffer); struct
239 impl GrpcByteBuffer { impl
241 pub unsafe fn from_raw(ptr: *mut grpc_byte_buffer) -> GrpcByteBuffer { in from_raw() argument
242 GrpcByteBuffer(ptr) in from_raw()
246 impl<'a> From<&'a [GrpcSlice]> for GrpcByteBuffer { implementation
256 GrpcByteBuffer(grpc_raw_byte_buffer_create((*s).get(), len)) in from()
261 impl<'a> From<&'a GrpcSlice> for GrpcByteBuffer { implementation
266 fn from(s: &'a GrpcSlice) -> GrpcByteBuffer { in from() argument
274 GrpcByteBuffer(grpc_raw_byte_buffer_create((*s).get(), 1)) in from()
279 impl Clone for GrpcByteBuffer { implementation
281 unsafe { GrpcByteBuffer(grpc_byte_buffer_copy(self.0)) } in clone()
285 impl Drop for GrpcByteBuffer { implementation
313 pub fn new(buf: GrpcByteBuffer) -> GrpcByteBufferReader { in new()
454 let buf = GrpcByteBuffer::from(data.as_slice()); in new_message_reader()
489 let buffer = GrpcByteBuffer::from(&slice); in test_typo_len_offset()