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

Method write_classfile_version

src/bytecode/io/writer.rs:30–33  ·  view source on GitHub ↗
(&mut self, version: &ClassfileVersion)

Source from the content-addressed store, hash-verified

28 }
29
30 pub fn write_classfile_version(&mut self, version: &ClassfileVersion) -> Result<usize, Error> {
31 self.write_u16(version.minor_version)
32 .and(self.write_u16(version.major_version))
33 }
34
35 pub fn write_constant_pool(&mut self, cp: &ConstantPool) -> Result<usize, Error> {
36 cp.constants.iter().fold(self.write_u16(cp.cp_len() as u16), |acc, x| {

Callers 1

write_classMethod · 0.80

Calls 1

write_u16Method · 0.80

Tested by

no test coverage detected