MCPcopy
hub / github.com/protocolbuffers/protobuf-go / StartMessage

Method StartMessage

internal/encoding/text/encode.go:85–88  ·  view source on GitHub ↗

StartMessage writes out the '{' or '<' symbol.

()

Source from the content-addressed store, hash-verified

83
84// StartMessage writes out the '{' or '<' symbol.
85func (e *Encoder) StartMessage() {
86 e.prepareNext(messageOpen)
87 e.out = append(e.out, e.delims[0])
88}
89
90// EndMessage writes out the '}' or '>' symbol.
91func (e *Encoder) EndMessage() {

Callers 5

TestResetFunction · 0.95
marshalMessageMethod · 0.80
marshalMapMethod · 0.80
marshalUnknownMethod · 0.80
TestEncoderFunction · 0.80

Calls 1

prepareNextMethod · 0.95

Tested by 2

TestResetFunction · 0.76
TestEncoderFunction · 0.64