MCPcopy Create free account
hub / github.com/bjoernQ/bleps / write_into

Method write_into

bleps/src/command.rs:43–47  ·  view source on GitHub ↗
(&self, dst: &mut [u8])

Source from the content-addressed store, hash-verified

41 }
42
43 pub fn write_into(&self, dst: &mut [u8]) {
44 dst[0] = (self.opcode & 0xff) as u8;
45 dst[1] = ((self.opcode & 0xff00) >> 8) as u8;
46 dst[2] = self.len;
47 }
48
49 pub fn ogf(&self) -> u8 {
50 ((self.opcode & 0b1111110000000000) >> 10) as u8

Callers 1

encodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected