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

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

Methods

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

fn new(reader: &'a mut Read) -> CodedInputStream<'a>

fn from_buffered_reader(buffered_reader: &'a mut BufRead) -> CodedInputStream<'a>

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

fn pos(&self) -> u32

fn bytes_until_limit(&self) -> u32

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

fn read_raw_byte(&mut self) -> ProtobufResult<u8>

fn push_limit(&mut self, limit: u32) -> ProtobufResult<u32>

fn pop_limit(&mut self, old_limit: u32)

fn eof(&mut self) -> ProtobufResult<bool>

fn check_eof(&mut self) -> ProtobufResult<()>

fn read_raw_varint64(&mut self) -> ProtobufResult<u64>

fn read_raw_varint32(&mut self) -> ProtobufResult<u32>

fn read_raw_little_endian32(&mut self) -> ProtobufResult<u32>

fn read_raw_little_endian64(&mut self) -> ProtobufResult<u64>

fn read_tag(&mut self) -> ProtobufResult<Tag>

fn read_tag_unpack(&mut self) -> ProtobufResult<(u32, WireType)>

fn read_double(&mut self) -> ProtobufResult<f64>

fn read_float(&mut self) -> ProtobufResult<f32>

fn read_int64(&mut self) -> ProtobufResult<i64>

fn read_int32(&mut self) -> ProtobufResult<i32>

fn read_uint64(&mut self) -> ProtobufResult<u64>

fn read_uint32(&mut self) -> ProtobufResult<u32>

fn read_sint64(&mut self) -> ProtobufResult<i64>

fn read_sint32(&mut self) -> ProtobufResult<i32>

fn read_fixed64(&mut self) -> ProtobufResult<u64>

fn read_fixed32(&mut self) -> ProtobufResult<u32>

fn read_sfixed64(&mut self) -> ProtobufResult<i64>

fn read_sfixed32(&mut self) -> ProtobufResult<i32>

fn read_bool(&mut self) -> ProtobufResult<bool>

fn read_enum<E: ProtobufEnum>(&mut self) -> ProtobufResult<E>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fn skip_field(&mut self, wire_type: WireType) -> ProtobufResult<()>

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

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

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

Read exact number of bytes

fn skip_raw_bytes(&mut self, count: u32) -> ProtobufResult<()>

fn read_bytes(&mut self) -> ProtobufResult<Vec<u8>>

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

fn read_string(&mut self) -> ProtobufResult<String>

fn read_string_into(&mut self, target: &mut String) -> ProtobufResult<()>

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

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