Reader returns an io.ReadCloser used to read the object's content. For a MemoryObject, this reader is seekable.
()
| 42 | // |
| 43 | // For a MemoryObject, this reader is seekable. |
| 44 | func (o *MemoryObject) Reader() (io.ReadCloser, error) { |
| 45 | return nopCloser{bytes.NewReader(o.cont)}, nil |
| 46 | } |
| 47 | |
| 48 | // Writer returns a ObjectWriter used to write the object's content. |
| 49 | func (o *MemoryObject) Writer() (io.WriteCloser, error) { |
no outgoing calls