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/clone_sidecar_integration_test.rs:175–177 ·
view source on GitHub ↗
(buf: &[u8])
Source
from the content-addressed store, hash-verified
173
}
174
175
fn find_head_end(buf: &[u8]) -> Option<usize> {
176
buf.windows(4).position(|w| w == b
"\r\n\r\n"
)
177
}
178
179
fn content_length(head: &str) -> Option<usize> {
180
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