(p []byte)
| 124 | type sizeCounter struct{ size int64 } |
| 125 | |
| 126 | func (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. |
no outgoing calls