MCPcopy Create free account
hub / github.com/google/pprof / write

Method write

internal/binutils/binutils_test.go:847–852  ·  view source on GitHub ↗

write appends a null-terminated string and returns its starting index.

(s string)

Source from the content-addressed store, hash-verified

845
846// write appends a null-terminated string and returns its starting index.
847func (b *buf) write(s string) uint32 {
848 res := uint32(len(b.data))
849 b.data = append(b.data, s...)
850 b.data = append(b.data, '\x00')
851 return res
852}
853
854// fakeELFFile generates a minimal valid ELF file, with fake .head.text and
855// .text sections, and their corresponding _text and _stext start symbols,

Callers 1

fakeELFFileFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected