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

Class CommandHeader

bleps/src/command.rs:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20#[derive(Debug)]
21pub struct CommandHeader {
22 pub opcode: u16,
23 pub len: u8,
24}
25
26pub const fn opcode(ogf: u8, ocf: u16) -> u16 {
27 ((ogf as u16) << 10) + ocf as u16

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected