Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fdatasync ¶
Fdatasync is similar to fsync(), but does not flush modified metadata unless that metadata is needed in order to allow a subsequent data retrieval to be correctly handled.
Types ¶
type BufferedWriter ¶
type BufferedWriter struct {
// contains filtered or unexported fields
}
BufferedWriter writes to a file with buffer.
func NewBufferedWriter ¶
func (*BufferedWriter) Flush ¶
func (l *BufferedWriter) Flush() error
func (*BufferedWriter) Sync ¶
func (l *BufferedWriter) Sync() error
type DirectWriter ¶
type DirectWriter struct {
// contains filtered or unexported fields
}
DirectWriter writes to a file opened with O_DIRECT flag. `Finish` must be called when the writing is done to truncate and sync the file.
func NewDirectWriter ¶
func (*DirectWriter) Finish ¶
func (l *DirectWriter) Finish() error
Click to show internal directories.
Click to hide internal directories.