[][src]Struct protobuf::stream::CodedInputStream

pub struct CodedInputStream<'a> { /* fields omitted */ }

Methods

impl<'a> CodedInputStream<'a>[src]

pub fn new(read: &'a mut dyn Read) -> CodedInputStream<'a>[src]

pub fn from_buffered_reader(
    buf_read: &'a mut dyn BufRead
) -> CodedInputStream<'a>
[src]

pub fn from_bytes(bytes: &'a [u8]) -> CodedInputStream<'a>[src]

pub fn pos(&self) -> u64[src]

pub fn bytes_until_limit(&self) -> u64[src]

pub fn read(&mut self, buf: &mut [u8]) -> ProtobufResult<()>[src]

pub fn read_raw_byte(&mut self) -> ProtobufResult<u8>[src]

pub fn push_limit(&mut self, limit: u64) -> ProtobufResult<u64>[src]

pub fn pop_limit(&mut self, old_limit: u64)[src]

pub fn eof(&mut self) -> ProtobufResult<bool>[src]

pub fn check_eof(&mut self) -> ProtobufResult<()>[src]

pub fn read_raw_varint64(&mut self) -> ProtobufResult<u64>[src]

pub fn read_raw_varint32(&mut self) -> ProtobufResult<u32>[src]

pub fn read_raw_little_endian32(&mut self) -> ProtobufResult<u32>[src]

pub fn read_raw_little_endian64(&mut self) -> ProtobufResult<u64>[src]

pub fn read_tag(&mut self) -> ProtobufResult<Tag>[src]

pub fn read_tag_unpack(&mut self) -> ProtobufResult<(u32, WireType)>[src]

pub fn read_double(&mut self) -> ProtobufResult<f64>[src]

pub fn read_float(&mut self) -> ProtobufResult<f32>[src]

pub fn read_int64(&mut self) -> ProtobufResult<i64>[src]

pub fn read_int32(&mut self) -> ProtobufResult<i32>[src]

pub fn read_uint64(&mut self) -> ProtobufResult<u64>[src]

pub fn read_uint32(&mut self) -> ProtobufResult<u32>[src]

pub fn read_sint64(&mut self) -> ProtobufResult<i64>[src]

pub fn read_sint32(&mut self) -> ProtobufResult<i32>[src]

pub fn read_fixed64(&mut self) -> ProtobufResult<u64>[src]

pub fn read_fixed32(&mut self) -> ProtobufResult<u32>[src]

pub fn read_sfixed64(&mut self) -> ProtobufResult<i64>[src]

pub fn read_sfixed32(&mut self) -> ProtobufResult<i32>[src]

pub fn read_bool(&mut self) -> ProtobufResult<bool>[src]

pub fn read_enum<E: ProtobufEnum>(&mut self) -> ProtobufResult<E>[src]

pub fn read_repeated_packed_double_into(
    &mut self,
    target: &mut Vec<f64>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_float_into(
    &mut self,
    target: &mut Vec<f32>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_int64_into(
    &mut self,
    target: &mut Vec<i64>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_int32_into(
    &mut self,
    target: &mut Vec<i32>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_uint64_into(
    &mut self,
    target: &mut Vec<u64>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_uint32_into(
    &mut self,
    target: &mut Vec<u32>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_sint64_into(
    &mut self,
    target: &mut Vec<i64>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_sint32_into(
    &mut self,
    target: &mut Vec<i32>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_fixed64_into(
    &mut self,
    target: &mut Vec<u64>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_fixed32_into(
    &mut self,
    target: &mut Vec<u32>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_sfixed64_into(
    &mut self,
    target: &mut Vec<i64>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_sfixed32_into(
    &mut self,
    target: &mut Vec<i32>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_bool_into(
    &mut self,
    target: &mut Vec<bool>
) -> ProtobufResult<()>
[src]

pub fn read_repeated_packed_enum_into<E: ProtobufEnum>(
    &mut self,
    target: &mut Vec<E>
) -> ProtobufResult<()>
[src]

pub fn read_unknown(
    &mut self,
    wire_type: WireType
) -> ProtobufResult<UnknownValue>
[src]

pub fn skip_field(&mut self, wire_type: WireType) -> ProtobufResult<()>[src]

pub fn read_raw_bytes_into(
    &mut self,
    count: u32,
    target: &mut Vec<u8>
) -> ProtobufResult<()>
[src]

Read raw bytes into the supplied vector. The vector will be resized as needed and overwritten.

pub fn read_raw_bytes(&mut self, count: u32) -> ProtobufResult<Vec<u8>>[src]

Read exact number of bytes

pub fn skip_raw_bytes(&mut self, count: u32) -> ProtobufResult<()>[src]

pub fn read_bytes(&mut self) -> ProtobufResult<Vec<u8>>[src]

pub fn read_bytes_into(&mut self, target: &mut Vec<u8>) -> ProtobufResult<()>[src]

pub fn read_string(&mut self) -> ProtobufResult<String>[src]

pub fn read_string_into(&mut self, target: &mut String) -> ProtobufResult<()>[src]

pub fn merge_message<M: Message>(
    &mut self,
    message: &mut M
) -> ProtobufResult<()>
[src]

pub fn read_message<M: Message + MessageStatic>(&mut self) -> ProtobufResult<M>[src]

Auto Trait Implementations

impl<'a> !Send for CodedInputStream<'a>

impl<'a> Unpin for CodedInputStream<'a>

impl<'a> !Sync for CodedInputStream<'a>

impl<'a> !UnwindSafe for CodedInputStream<'a>

impl<'a> !RefUnwindSafe for CodedInputStream<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]