MCPcopy Create free account
hub / github.com/containers/image / Write

Method Write

docker/docker_image_dest.go:126–129  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

124type sizeCounter struct{ size int64 }
125
126func (c *sizeCounter) Write(p []byte) (n int, err error) {
127 c.size += int64(len(p))
128 return len(p), nil
129}
130
131// PutBlobWithOptions writes contents of stream and returns data representing the result.
132// inputInfo.Digest can be optionally provided if known; if provided, and stream is read to the end without error, the digest MUST match the stream contents.

Callers 3

ReadMethod · 0.80
TestRemoveAuthenticationFunction · 0.80
makeLayerGoroutineFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestRemoveAuthenticationFunction · 0.64
makeLayerGoroutineFunction · 0.64