FileBuffer implements Buffer interface using file system.
| 29 | |
| 30 | // FileBuffer implements Buffer interface using file system. |
| 31 | type FileBuffer struct { |
| 32 | Path string |
| 33 | |
| 34 | // LenHint is the size of the stored blob. It can |
| 35 | // be set to avoid the need to call os.Stat in the |
| 36 | // Len() method. |
| 37 | LenHint int |
| 38 | } |
| 39 | |
| 40 | func (fb FileBuffer) Open() (io.ReadCloser, error) { |
| 41 | return os.Open(fb.Path) |
nothing calls this directly
no outgoing calls
no test coverage detected