MCPcopy Create free account
hub / github.com/erans/pgsqlite / encode_parameter_description

Function encode_parameter_description

src/protocol/codec.rs:400–411  ·  view source on GitHub ↗
(oids: Vec<i32>, dst: &mut BytesMut)

Source from the content-addressed store, hash-verified

398}
399
400fn encode_parameter_description(oids: Vec<i32>, dst: &mut BytesMut) {
401 dst.put_u8(b't');
402 let len_pos = dst.len();
403 dst.put_i32(0); // Placeholder
404
405 dst.put_i16(oids.len() as i16);
406 for oid in oids {
407 dst.put_i32(oid);
408 }
409
410 update_message_length(dst, len_pos);
411}
412
413// Helper functions
414fn read_cstring(buf: &mut &[u8]) -> io::Result<String> {

Callers 1

encodeMethod · 0.85

Calls 2

update_message_lengthFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected