package
6.0.0+incompatible
Repository: https://github.com/srcup/u-root.git
Documentation: pkg.go.dev

# Functions

FromBigEndian unmarshals b into obj in big endian byte order.
FromBytes unmarshals b into obj in the given byte order.
FromLittleEndian unmarshals b into obj in little endian byte order.
FullLineWriter returns an io.Writer that waits for a full line of prints before calling w.Write on one line each.
MultiWriteCloser is an io.MultiWriter that has an io.Closer and attempts to close those w's that have optional io.Closers.
NewBigEndianBuffer returns a new big endian coder for a new buffer.
NewBuffer Consumes b for marshaling or unmarshaling in the given byte order.
NewCachingReader buffers reads from r.
NewLazyFile returns a lazy ReaderAt opened from path.
NewLazyOpener returns a lazy io.Reader based on `open`.
NewLazyOpenerAt returns a lazy io.ReaderAt based on `open`.
NewLexer returns a new coder for buffers.
NewLittleEndianBuffer returns a new little endian coder for a new buffer.
NewNativeEndianBuffer returns a new native endian coder for a new buffer.
ReadAll reads everything that r contains.
Reader generates a Reader from a ReaderAt.
ReaderAtEqual compares the contents of r1 and r2.
ToBigEndian marshals m to big endian byte order.
ToBytes marshals m in the given byte order.
ToLittleEndian marshals m to little endian byte order.

# Variables

Discard is a WriteNameCloser on which all Write and Close calls succeed without doing anything, and the Name call returns "null".

# Structs

AlignReader keeps track of how many bytes were read so the reader can be aligned at a future time.
AlignWriter keeps track of how many bytes were written so the writer can be aligned at a future time.
Buffer implements functions to manipulate byte slices in a zero-copy way.
CachingReader is a lazily caching wrapper of an io.Reader.
LazyOpener is a lazy io.Reader.
LazyOpenerAt is a lazy io.ReaderAt.
Lexer is a convenient encoder/decoder for buffers.

# Interfaces

LineWriter processes one line of log output at a time.
Marshaler is the interface implemented by an object that can marshal itself into binary form.
ReadAtCloser is an io.ReaderAt and an io.Closer.
Unmarshaler is the interface implemented by an object that can unmarshal a binary representation of itself.
WriteNameCloser is the interface that groups Write, Close, and Name methods.