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

Method write_map_begin

lib/rs/src/protocol/binary.rs:501–511  ·  view source on GitHub ↗
(&mut self, identifier: &TMapIdentifier)

Source from the content-addressed store, hash-verified

499 }
500
501 fn write_map_begin(&mut self, identifier: &TMapIdentifier) -> crate::Result<()> {
502 let key_type = identifier
503 .key_type
504 .expect("map identifier to write should contain key type");
505 self.write_byte(field_type_to_u8(key_type))?;
506 let val_type = identifier
507 .value_type
508 .expect("map identifier to write should contain value type");
509 self.write_byte(field_type_to_u8(val_type))?;
510 self.write_i32(identifier.size)
511 }
512
513 fn write_map_end(&mut self) -> crate::Result<()> {
514 Ok(())

Callers

nothing calls this directly

Calls 3

field_type_to_u8Function · 0.85
write_byteMethod · 0.45
write_i32Method · 0.45

Tested by

no test coverage detected