windows_metadata/reader/tables/
method_param.rs1use super::*;
2
3impl std::fmt::Debug for MethodParam<'_> {
4 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5 f.debug_tuple("MethodParam").field(&self.name()).finish()
6 }
7}
8
9impl MethodParam<'_> {
10 pub fn flags(&self) -> ParamAttributes {
11 ParamAttributes(self.usize(0).try_into().unwrap())
12 }
13
14 pub fn sequence(&self) -> u16 {
15 self.usize(1).try_into().unwrap()
16 }
17
18 pub fn name(&self) -> &str {
19 self.str(2)
20 }
21}