Documentation ¶
Index ¶
- func Discard(reader io.Reader) error
- func GetMultiWriter(writers ...io.Writer) io.Writer
- func MarshalUint32(b []byte, v uint32)
- func MarshalUint64(b []byte, v uint64)
- func NewVoidHash() hash.Hash
- func UnmarshalUint32(b []byte) (uint32, []byte)
- type LimitedReader
- type LockedReader
- type OffsetReader
- type OffsetWriter
- type ReadWriterAt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMultiWriter ¶
GetMultiWriter returns a multiwriter composed of the provided valid writer (!= nil)
func MarshalUint32 ¶
MarshalUint32 writes the provided uint32 into the provided byte array Deprecated
func MarshalUint64 ¶
MarshalUint64 writes the provided uint64 into the provided byte array Deprecated
func NewVoidHash ¶
NewVoidHash returns an empty implementation of hash.Hash which always returns an empty byte array
func UnmarshalUint32 ¶
UnmarshalUint32 retrieves an uint32 from the provided byte array Deprecated
Types ¶
type LimitedReader ¶
LimitedReader reads from R but limits the amount of data returned to just N bytes. Each call to Read updates N to reflect the new amount remaining. Read returns EOF AS SOON AS N <= 0 or when the underlying R returns EOF.
type LockedReader ¶
LockedReader reads from R and call the Unlock function once R.Read() returns an error Read returns EOF when N <= 0 or when the underlying R returns EOF.
type OffsetReader ¶
OffsetReader wraps an io.WriterAt into an io.Writer
type OffsetWriter ¶
OffsetWriter wraps an io.WriterAt into an io.Writer