Documentation ¶
Overview ¶
Package iohelper provides extra interfaces than package io.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SectionWriter ¶
type SectionWriter struct {
// contains filtered or unexported fields
}
SectionWriter implements Write, Seek, and WriteAt on a section of an underlying io.WriterAt.
Since 0.1.6
func NewSectionWriter ¶
func NewSectionWriter(w io.WriterAt, off int64, n int64) *SectionWriter
NewSectionWriter returns a SectionWriter that writes to w starting at offset off and stops with io.ErrShortWrite after n bytes.
Since 0.1.6
func (*SectionWriter) Seek ¶
func (s *SectionWriter) Seek(offset int64, whence int) (int64, error)
Seek seeks to relative position by offset.
Since 0.1.6
func (*SectionWriter) Size ¶
func (s *SectionWriter) Size() int64
Size returns the size of the section in bytes.
Since 0.1.6
Click to show internal directories.
Click to hide internal directories.