MCPcopy
hub / github.com/golang/tools / Code

Method Code

internal/pkgbits/encoder.go:311–314  ·  view source on GitHub ↗

Code encodes and writes a Code value into the element bitstream.

(c Code)

Source from the content-addressed store, hash-verified

309
310// Code encodes and writes a Code value into the element bitstream.
311func (w *Encoder) Code(c Code) {
312 w.Sync(c.Marker())
313 w.Len(c.Value())
314}
315
316// String encodes and writes a string value into the element
317// bitstream.

Callers 1

scalarMethod · 0.95

Calls 4

SyncMethod · 0.95
LenMethod · 0.95
MarkerMethod · 0.65
ValueMethod · 0.65

Tested by

no test coverage detected