MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parse_debug_query_bigint_u64

Function parse_debug_query_bigint_u64

packages/native/src/debug.rs:51–61  ·  view source on GitHub ↗
(sign_bit: bool, words: &[u64])

Source from the content-addressed store, hash-verified

49const MAX_SAFE_INTEGER_U64: u64 = 9_007_199_254_740_991;
50
51pub(crate) fn parse_debug_query_bigint_u64(sign_bit: bool, words: &[u64]) -> ParseResult<u64> {
52 if sign_bit && words.iter().any(|word| *word != 0) {
53 return Err(());
54 }
55
56 match words {
57 [] => Ok(0),
58 [value] => Ok(*value),
59 _ => Err(()),
60 }
61}
62
63pub(crate) fn parse_debug_query_number_u64(float: f64) -> ParseResult<u64> {
64 if !float.is_finite()

Callers 2

js_u64Function · 0.85
engine_debug_get_payloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected