Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ write_bool
Function
write_bool
nodedb-query/src/msgpack_scan/writer.rs:89–91 ·
view source on GitHub ↗
(buf: &mut Vec<u8>, b: bool)
Source
from the content-addressed store, hash-verified
87
/// Write a msgpack boolean.
88
#[inline]
89
pub fn write_bool(buf: &mut Vec<u8>, b: bool) {
90
buf.push(if b { 0xC3 } else { 0xC2 });
91
}
92
93
/// Write a msgpack null.
94
#[inline]
Callers
1
write_kv_bool
Function · 0.85
Calls
1
push
Method · 0.45
Tested by
no test coverage detected