MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / parameter_description

Function parameter_description

src/protocol/tests.rs:183–190  ·  view source on GitHub ↗
(ids: &[i32])

Source from the content-addressed store, hash-verified

181 }
182
183 pub fn parameter_description(ids: &[i32]) -> Vec<u8> {
184 let mut list = BufferList::new();
185 list.add_int16(ids.len() as i16);
186 for id in ids {
187 list.add_int32(*id);
188 }
189 list.join(true, Some(b't'))
190 }
191
192 pub fn data_row(values: &[Option<&str>]) -> Vec<u8> {
193 let mut list = BufferList::new();

Calls 4

lenMethod · 0.80
add_int16Method · 0.45
add_int32Method · 0.45
joinMethod · 0.45

Tested by

no test coverage detected