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

Function put_cstring

src/protocol/codec.rs:425–428  ·  view source on GitHub ↗
(dst: &mut BytesMut, s: &str)

Source from the content-addressed store, hash-verified

423}
424
425fn put_cstring(dst: &mut BytesMut, s: &str) {
426 dst.put_slice(s.as_bytes());
427 dst.put_u8(0);
428}
429
430fn update_message_length(dst: &mut BytesMut, len_pos: usize) {
431 let len = (dst.len() - len_pos) as i32;

Callers 5

encode_parameter_statusFunction · 0.85
encode_row_descriptionFunction · 0.85
encode_command_completeFunction · 0.85
encode_error_responseFunction · 0.85
encode_notice_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected