MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / decode

Method decode

user/src/io.rs:111–117  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

109
110impl InputEvent {
111 pub fn decode(&self) -> Option<DecodeType> {
112 Decoder::decode(
113 self.event_type as usize,
114 self.code as usize,
115 self.value as usize,
116 ).ok()
117 }
118}

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected