MCPcopy Create free account
hub / github.com/WICG/webpackage / getString

Method getString

go/signedexchange/structuredheader/parser.go:59–63  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

57}
58
59func (p *parser) getString(n int) string {
60 s := p.input[:n]
61 p.input = p.input[n:]
62 return s
63}
64
65func (p *parser) consumeChar(c byte) bool {
66 if len(p.input) > 0 && p.input[0] == c {

Callers 4

parseKeyMethod · 0.95
parseNumberMethod · 0.95
parseTokenMethod · 0.95
parseByteSequenceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected