- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for cstab (0.03 sec)
-
src/internal/coverage/encodecounter/encode.go
func (cfw *CoverageDataWriter) AppendSegment(args map[string]string, visitor CounterVisitor) error { cfw.stab = &stringtab.Writer{} cfw.stab.InitWriter() cfw.stab.Lookup("") var err error for k, v := range args { cfw.stab.Lookup(k) cfw.stab.Lookup(v) } ws := &slicewriter.WriteSeeker{} if err = cfw.writeSegmentPreamble(args, ws); err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.8K bytes - Viewed (0) -
src/internal/coverage/encodemeta/encode.go
return nil, fmt.Errorf("invalid empty package path") } x := &CoverageMetaDataBuilder{ tmp: make([]byte, 0, 256), h: md5.New(), } x.stab.InitWriter() x.stab.Lookup("") x.pkgpath = x.stab.Lookup(pkgpath) x.pkgname = x.stab.Lookup(pkgname) x.modpath = x.stab.Lookup(modulepath) io.WriteString(x.h, pkgpath) io.WriteString(x.h, pkgname) io.WriteString(x.h, modulepath) return x, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 17:16:10 UTC 2024 - 5.5K bytes - Viewed (0) -
src/internal/coverage/encodemeta/encodefile.go
type CoverageMetaFileWriter struct { stab stringtab.Writer mfname string w *bufio.Writer tmp []byte debug bool } func NewCoverageMetaFileWriter(mfname string, w io.Writer) *CoverageMetaFileWriter { r := &CoverageMetaFileWriter{ mfname: mfname, w: bufio.NewWriter(w), tmp: make([]byte, 64), } r.stab.InitWriter() r.stab.Lookup("") return r }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 12:40:42 UTC 2022 - 3.4K bytes - Viewed (0) -
src/internal/coverage/stringtab/stringtab.go
// counter-data files. // Writer implements a string table writing utility. type Writer struct { stab map[string]uint32 strs []string tmp []byte frozen bool } // InitWriter initializes a stringtab.Writer. func (stw *Writer) InitWriter() { stw.stab = make(map[string]uint32) stw.tmp = make([]byte, 64) } // Nentries returns the number of strings interned so far.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 12:40:42 UTC 2022 - 3.6K bytes - Viewed (0) -
src/cmd/internal/objfile/macho.go
var addrs []uint64 for _, s := range f.macho.Symtab.Syms { // Skip stab debug info. if s.Type&stabTypeMask == 0 { addrs = append(addrs, s.Value) } } sort.Sort(uint64s(addrs)) var syms []Sym for _, s := range f.macho.Symtab.Syms { if s.Type&stabTypeMask != 0 { // Skip stab debug info. continue } sym := Sym{Name: s.Name, Addr: s.Value, Code: '?'}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux.go
package mountinfo import ( "bufio" "fmt" "io" "os" "path/filepath" "strconv" "strings" "syscall" ) const ( // Number of fields per line in /proc/mounts as per the fstab man page. expectedNumFieldsPerLine = 6 // Location of the mount file to use procMountsPath = "/proc/mounts" ) // IsLikelyMountPoint determines if a directory is a mountpoint.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.7K bytes - Viewed (0)