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

Function find_head_end

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

Source from the content-addressed store, hash-verified

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

Callers 1

spawn_sync_serverFunction · 0.85

Calls 1

positionMethod · 0.45

Tested by

no test coverage detected