(sign_bit: bool, words: &[u64])
| 49 | const MAX_SAFE_INTEGER_U64: u64 = 9_007_199_254_740_991; |
| 50 | |
| 51 | pub(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 | |
| 63 | pub(crate) fn parse_debug_query_number_u64(float: f64) -> ParseResult<u64> { |
| 64 | if !float.is_finite() |
no outgoing calls
no test coverage detected