MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / decode_fieldnorm

Function decode_fieldnorm

nodedb-fts/src/block.rs:265–267  ·  view source on GitHub ↗

Decode a SmallFloat fieldnorm byte back to approximate document length.

(byte: u8)

Source from the content-addressed store, hash-verified

263
264/// Decode a SmallFloat fieldnorm byte back to approximate document length.
265pub fn decode_fieldnorm(byte: u8) -> u32 {
266 smallfloat::decode(byte)
267}
268
269#[cfg(test)]
270mod tests {

Callers 1

fieldnorm_encode_decodeFunction · 0.85

Calls 1

decodeFunction · 0.50

Tested by 1

fieldnorm_encode_decodeFunction · 0.68