package slicewriter
Import Path
internal/coverage/slicewriter (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
slicewriter.go
Package-Level Type Names (only one)
WriteSeeker is a helper object that implements the io.WriteSeeker
interface. Clients can create a WriteSeeker, make a series of Write
calls to add data to it (and possibly Seek calls to update
previously written portions), then finally invoke BytesWritten() to
get a pointer to the constructed byte slice.
BytesWritten returns the underlying byte slice for the WriteSeeker,
containing the data written to it via Write/Seek calls.
(*WriteSeeker) Read(p []byte) (n int, err error)
Seek repositions the read/write position of the WriteSeeker within
its internally maintained slice. Note that it is not possible to
expand the size of the slice using SEEK_SET; trying to seek outside
the slice will result in an error.
(*WriteSeeker) Write(p []byte) (n int, err error)
*WriteSeeker : internal/bisect.Writer
*WriteSeeker : io.Reader
*WriteSeeker : io.ReadSeeker
*WriteSeeker : io.ReadWriter
*WriteSeeker : io.ReadWriteSeeker
*WriteSeeker : io.Seeker
*WriteSeeker : io.Writer
*WriteSeeker : io.WriteSeeker
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |