MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / width

Method width

flow-message/src/cross/data/mod.rs:65–70  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

63
64impl ValueType {
65 fn width(&self) -> usize {
66 match *self {
67 ValueType::Float | ValueType::Int | ValueType::Uint => 8,
68 ValueType::Byte | ValueType::Bool => 1,
69 }
70 }
71}
72
73#[derive(Debug, Clone, Copy)]

Callers 5

analyzeFunction · 0.80
execMethod · 0.80
decode_videoFunction · 0.80
into_responseMethod · 0.80
lenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected