package stringtab
Import Path
internal/coverage/stringtab (on go.dev)
Dependency Relation
imports 4 packages, and imported by 4 packages
Involved Source Files
stringtab.go
Package-Level Type Names (total 2)
Reader is a helper for reading a string table previously
serialized by a Writer.Write call.
Entries returns the number of decoded entries in a string table.
Get returns string 'idx' within the string table.
Read reads/decodes a string table using the reader provided.
func NewReader(r *slicereader.Reader) *Reader
Writer implements a string table writing utility.
Freeze sends a signal to the writer that no more additions are
allowed, only lookups of existing strings (if a lookup triggers
addition, a panic will result). Useful as a mechanism for
"finalizing" a string table prior to writing it out.
InitWriter initializes a stringtab.Writer.
Lookup looks up string 's' in the writer's table, adding
a new entry if need be, and returning an index into the table.
Nentries returns the number of strings interned so far.
Size computes the memory in bytes needed for the serialized
version of a stringtab.Writer.
Write writes the string table in serialized form to the specified
io.Writer.
Package-Level Functions (only one)
NewReader creates a stringtab.Reader to read the contents
of a string table from 'r'.
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. |