(oids: Vec<i32>, dst: &mut BytesMut)
| 398 | } |
| 399 | |
| 400 | fn 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 |
| 414 | fn read_cstring(buf: &mut &[u8]) -> io::Result<String> { |
no test coverage detected