MCPcopy Create free account
hub / github.com/Monibuca/engine / Write

Method Write

util/crc32.go:110–118  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

108}
109
110func (wr *Crc32Writer) Write(b []byte) (n int, err error) {
111 if n, err = wr.W.Write(b); err != nil {
112 return
113 }
114
115 wr.Crc32 = getCrc32(wr.Crc32, b)
116
117 return
118}
119
120func getCrc32(crc uint32, data []byte) uint32 {
121 for _, v := range data {

Callers 1

WritePSIFunction · 0.95

Calls 2

getCrc32Function · 0.85
WriteMethod · 0.65

Tested by

no test coverage detected