Blob represents a blob. Use the methods Size, SizedRef and ReadAll to query and get data from Blob.
| 30 | // Blob represents a blob. Use the methods Size, SizedRef and |
| 31 | // ReadAll to query and get data from Blob. |
| 32 | type Blob struct { |
| 33 | ref Ref |
| 34 | size uint32 |
| 35 | readAll func(context.Context) ([]byte, error) |
| 36 | mem atomic.Value // of []byte, if in memory |
| 37 | } |
| 38 | |
| 39 | // NewBlob constructs a Blob from its Ref, size and a function that |
| 40 | // returns the contents of the blob. Any error in the function newReader when |
nothing calls this directly
no outgoing calls
no test coverage detected