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

Method len

src/protocol/buffer_pool.rs:344–346  ·  view source on GitHub ↗

Get the length of the buffer

(&self)

Source from the content-addressed store, hash-verified

342
343 /// Get the length of the buffer
344 pub fn len(&self) -> usize {
345 self.buffer().len()
346 }
347
348 /// Check if the buffer is empty
349 pub fn is_empty(&self) -> bool {

Callers 15

check_rate_limitsMethod · 0.45
maybe_cleanupMethod · 0.45
get_statsMethod · 0.45
return_bufferMethod · 0.45
cleanup_old_buffersMethod · 0.45
get_statsMethod · 0.45
clearMethod · 0.45
parse_messageMethod · 0.45
parse_startup_messageMethod · 0.45
parse_auth_requestMethod · 0.45
read_cstringMethod · 0.45
encode_uuidMethod · 0.45

Calls 1

bufferMethod · 0.80

Tested by

no test coverage detected