static/jsvm/interfaces/bytes.Reader.html
A Reader implements the [io.Reader], [io.ReaderAt], [io.WriterTo], [io.Seeker], [io.ByteScanner], and [io.RuneScanner] interfaces by reading from a byte slice. Unlike a [Buffer], a Reader is read-only and supports seeking. The zero value for Reader operates like a Reader of an empty slice.
lenreadreadAtreadBytereadRuneresetseeksizeunreadByteunreadRunewriteTo
Len returns the number of bytes of the unread portion of the slice.
Read implements the [io.Reader] interface.
ReadAt implements the [io.ReaderAt] interface.
ReadByte implements the [io.ByteReader] interface.
ReadRune implements the [io.RuneReader] interface.
Reset resets the [Reader] to be reading from b.
Seek implements the [io.Seeker] interface.
Size returns the original length of the underlying byte slice. Size is the number of bytes available for reading via [Reader.ReadAt]. The result is unaffected by any method calls except [Reader.Reset].
UnreadByte complements [Reader.ReadByte] in implementing the [io.ByteScanner] interface.
UnreadRune complements [Reader.ReadRune] in implementing the [io.RuneScanner] interface.
WriteTo implements the [io.WriterTo] interface.
OSLightDark
Generated using TypeDoc