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

Function update_message_length

src/protocol/codec.rs:430–433  ·  view source on GitHub ↗
(dst: &mut BytesMut, len_pos: usize)

Source from the content-addressed store, hash-verified

428}
429
430fn update_message_length(dst: &mut BytesMut, len_pos: usize) {
431 let len = (dst.len() - len_pos) as i32;
432 dst[len_pos..len_pos+4].copy_from_slice(&len.to_be_bytes());
433}

Callers 8

encode_authenticationFunction · 0.85
encode_parameter_statusFunction · 0.85
encode_row_descriptionFunction · 0.85
encode_data_rowFunction · 0.85
encode_command_completeFunction · 0.85
encode_error_responseFunction · 0.85
encode_notice_responseFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected