Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsZeroFilled ¶
IsZeroFilled returns true if b consists of zeros only.
Types ¶
type ReadWriteSeeker ¶
ReadWriteSeeker is a wrapper for a []byte slice which implements io.ReadWrite.Seeker.
func NewReadWriteSeeker ¶
func NewReadWriteSeeker(storage []byte) *ReadWriteSeeker
NewReadWriteSeeker wraps `storage` with an implementation of io.ReadWriteSeeker.
func (*ReadWriteSeeker) Read ¶
func (w *ReadWriteSeeker) Read(b []byte) (n int, err error)
Read implements io.Reader.
Read reads `Storage` into `b`.
If nothing else left to read then io.EOF is returned as `err`.
Click to show internal directories.
Click to hide internal directories.