MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / slice_len

Function slice_len

atomic-cli/tests/it/git_import_cb9c_test.rs:1982–1984  ·  view source on GitHub ↗

Bounded slice view of `chunk`.

(chunk: &[u8], len: usize)

Source from the content-addressed store, hash-verified

1980
1981/// Bounded slice view of `chunk`.
1982fn slice_len(chunk: &[u8], len: usize) -> &[u8] {
1983 &chunk[..len.min(chunk.len())]
1984}
1985
1986/// The exact deterministic bytes the harness commits (xorshift stream).
1987fn imported_bytes() -> Vec<u8> {

Callers 1

imported_bytesFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected