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

Method arg_i64

nodedb/src/control/server/resp/command.rs:55–57  ·  view source on GitHub ↗

Get argument at index parsed as i64.

(&self, index: usize)

Source from the content-addressed store, hash-verified

53
54 /// Get argument at index parsed as i64.
55 pub fn arg_i64(&self, index: usize) -> Option<i64> {
56 self.arg_str(index).and_then(|s| s.parse().ok())
57 }
58
59 /// Number of arguments (excluding the command name).
60 pub fn argc(&self) -> usize {

Callers 6

handle_setFunction · 0.80
handle_incrbyFunction · 0.80
handle_decrbyFunction · 0.80
handle_expireFunction · 0.80
handle_scanFunction · 0.80
handle_zrangeFunction · 0.80

Calls 3

arg_strMethod · 0.80
okMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected