MCPcopy Create free account
hub / github.com/protocolbuffers/protobuf-go / WriteInt

Method WriteInt

internal/encoding/json/encode.go:179–182  ·  view source on GitHub ↗

WriteInt writes out the given signed integer in JSON number value.

(n int64)

Source from the content-addressed store, hash-verified

177
178// WriteInt writes out the given signed integer in JSON number value.
179func (e *Encoder) WriteInt(n int64) {
180 e.prepareNext(scalar)
181 e.out = strconv.AppendInt(e.out, n, 10)
182}
183
184// WriteUint writes out the given unsigned integer in JSON number value.
185func (e *Encoder) WriteUint(n uint64) {

Callers 3

marshalSingularMethod · 0.45
marshalSingularMethod · 0.45
TestEncoderFunction · 0.45

Calls 1

prepareNextMethod · 0.95

Tested by 1

TestEncoderFunction · 0.36