go/src/internal/coverage/encodecounter/encode.go

type CoverageDataWriter

func NewCoverageDataWriter(w io.Writer, flav coverage.CounterFlavor) *CoverageDataWriter {}

type CounterVisitor

type CounterVisitorFn

// Write writes the contents of the count-data file to the writer
// previously supplied to NewCoverageDataWriter. Returns an error
// if something went wrong somewhere with the write.
func (cfw *CoverageDataWriter) Write(metaFileHash [16]byte, args map[string]string, visitor CounterVisitor) error {}

func padToFourByteBoundary(ws *slicewriter.WriteSeeker) error {}

func (cfw *CoverageDataWriter) patchSegmentHeader(ws *slicewriter.WriteSeeker) error {}

func (cfw *CoverageDataWriter) writeSegmentPreamble(args map[string]string, ws *slicewriter.WriteSeeker) error {}

// AppendSegment appends a new segment to a counter data, with a new
// args section followed by a payload of counter data clauses.
func (cfw *CoverageDataWriter) AppendSegment(args map[string]string, visitor CounterVisitor) error {}

func (cfw *CoverageDataWriter) writeHeader(metaFileHash [16]byte) error {}

func (cfw *CoverageDataWriter) writeBytes(b []byte) error {}

func (cfw *CoverageDataWriter) writeCounters(visitor CounterVisitor, ws *slicewriter.WriteSeeker) error {}

func (cfw *CoverageDataWriter) writeFooter() error {}