Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
174
fn find_head_end(buf: &[u8]) -> Option<usize> {
175
buf.windows(4).position(|w| w == b
"\r\n\r\n"
)
176
}
177
178
fn content_length(head: &str) -> Option<usize> {
179
for line in head.lines() {
Callers
1
spawn_sync_server
Function · 0.85
Calls
1
position
Method · 0.45
Tested by
no test coverage detected