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

Method parse_parameter_description

src/protocol/parser.rs:224–240  ·  view source on GitHub ↗
(
        &self,
        length: usize,
        reader: &mut BufferReader<'_>,
    )

Source from the content-addressed store, hash-verified

222 }
223
224 fn parse_parameter_description(
225 &self,
226 length: usize,
227 reader: &mut BufferReader<'_>,
228 ) -> Result<BackendMessage> {
229 let count = reader.int16()? as usize;
230 let mut ids = Vec::with_capacity(count);
231 for _ in 0..count {
232 ids.push(reader.int32()?);
233 }
234 Ok(BackendMessage::ParameterDescription(
235 ParameterDescriptionMessage {
236 length,
237 data_type_ids: ids,
238 },
239 ))
240 }
241
242 fn parse_data_row(
243 &self,

Callers 1

handle_packetMethod · 0.80

Calls 3

int16Method · 0.80
pushMethod · 0.80
int32Method · 0.80

Tested by

no test coverage detected