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

Function find_head_end

atomic-cli/tests/clone_sidecar_integration_test.rs:175–177  ·  view source on GitHub ↗
(buf: &[u8])

Source from the content-addressed store, hash-verified

173}
174
175fn find_head_end(buf: &[u8]) -> Option<usize> {
176 buf.windows(4).position(|w| w == b"\r\n\r\n")
177}
178
179fn content_length(head: &str) -> Option<usize> {
180 for line in head.lines() {

Callers 1

spawn_sync_serverFunction · 0.85

Calls 1

positionMethod · 0.45

Tested by

no test coverage detected