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

Function opcode

bleps/src/command.rs:26–28  ·  view source on GitHub ↗
(ogf: u8, ocf: u16)

Source from the content-addressed store, hash-verified

24}
25
26pub const fn opcode(ogf: u8, ocf: u16) -> u16 {
27 ((ogf as u16) << 10) + ocf as u16
28}
29
30impl CommandHeader {
31 pub fn from_bytes(bytes: &[u8]) -> CommandHeader {

Callers 2

from_ogf_ocfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected