MCPcopy Create free account
hub / github.com/cretz/stackparam / write_u16

Method write_u16

src/bytecode/io/writer.rs:675–679  ·  view source on GitHub ↗
(&mut self, value: u16)

Source from the content-addressed store, hash-verified

673 }
674
675 pub fn write_u16(&mut self, value: u16) -> Result<usize, Error> {
676 let buf: [u8; 2] = [((value & 0xFF00) >> 8) as u8, (value & 0xFF) as u8];
677
678 self.target.write(&buf)
679 }
680
681 pub fn write_u8(&mut self, value: u8) -> Result<usize, Error> {
682 self.target.write(&[value])

Callers 15

write_constant_poolMethod · 0.80
write_constantMethod · 0.80
write_access_flagsMethod · 0.80
write_interfacesMethod · 0.80
write_fieldsMethod · 0.80
write_methodsMethod · 0.80
write_attributesMethod · 0.80
write_attributeMethod · 0.80
write_stack_map_tableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected