MCPcopy 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
273func 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

FormatBinaryFragmentMethod · 0.85

Calls 2

WriteMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected