MCPcopy Create free account
hub / github.com/apache/thrift / read_string

Method read_string

lib/rs/src/protocol/binary.rs:248–251  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

246 }
247
248 fn read_string(&mut self) -> crate::Result<String> {
249 let bytes = self.read_bytes()?;
250 String::from_utf8(bytes).map_err(From::from)
251 }
252
253 fn read_list_begin(&mut self) -> crate::Result<TListIdentifier> {
254 let element_type: TType = self.read_byte().and_then(field_type_from_u8)?;

Callers 3

read_message_beginMethod · 0.45

Calls 1

read_bytesMethod · 0.45

Tested by 2