MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / new

Method new

rust/stringzilla.rs:79–81  ·  view source on GitHub ↗
(offset: usize, length: usize)

Source from the content-addressed store, hash-verified

77 /// Creates a new IndexSpan with the given offset and length.
78 #[inline]
79 pub fn new(offset: usize, length: usize) -> Self {
80 Self { offset, length }
81 }
82
83 /// Returns the range of bytes covered by this span.
84 ///

Callers 2

test_hmac_sha256Function · 0.45
test_hmac_sha256_kwargsFunction · 0.45

Calls 4

decode_batchMethod · 0.80
lenMethod · 0.80
sz_hash_state_initFunction · 0.50
sz_sha256_state_initFunction · 0.50

Tested by 2

test_hmac_sha256Function · 0.36
test_hmac_sha256_kwargsFunction · 0.36