Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antonmedv/gitmal
/ deflateBinaryChunk
Function
deflateBinaryChunk
pkg/gitdiff/format.go:273–281 ·
view source on GitHub ↗
(data []byte)
Source
from the content-addressed store, hash-verified
271
}
272
273
func
deflateBinaryChunk(data []byte) []byte {
274
var
b bytes.Buffer
275
276
zw := zlib.NewWriter(&b)
277
_, _ = zw.Write(data)
278
_ = zw.Close()
279
280
return
b.Bytes()
281
}
Callers
1
FormatBinaryFragment
Method · 0.85
Calls
2
Write
Method · 0.80
Close
Method · 0.45
Tested by
no test coverage detected