MCPcopy Create free account
hub / github.com/tailscale/tailscale / writePad

Function writePad

cmd/nardump/nardump/nardump.go:185–193  ·  view source on GitHub ↗
(w io.Writer, n int)

Source from the content-addressed store, hash-verified

183}
184
185func writePad(w io.Writer, n int) error {
186 pad := n % 8
187 if pad == 0 {
188 return nil
189 }
190 var zeroes [8]byte
191 _, err := w.Write(zeroes[:8-pad])
192 return err
193}

Callers 2

writeStringFunction · 0.85
writeBytesFunction · 0.85

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…