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