Documentation
¶
Index ¶
- type File
- func (f *File) Bytes() []byte
- func (f *File) Close() error
- func (f *File) Len() int
- func (f *File) Read(b []byte) (n int, err error)
- func (f *File) ReadAt(b []byte, off int64) (n int, err error)
- func (f *File) Reset()
- func (f *File) Size() int64
- func (f *File) Write(b []byte) (n int, err error)
- func (f *File) WriteAt(b []byte, off int64) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File is a custom implementation of an in-memory file type It behaves as any io.{Reader,ReaderAt,Writer,WriterAt}
func WithFileSize ¶
WithFileSize primes the buffer with provided size This should be used if we are writing to this file
Click to show internal directories.
Click to hide internal directories.