MCPcopy Create free account
hub / github.com/cortexproject/cortex / MarshalToSizedBuffer

Method MarshalToSizedBuffer

pkg/ruler/ruler.pb.go:1283–1294  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

1281}
1282
1283func (m *LivenessCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1284 i := len(dAtA)
1285 _ = i
1286 var l int
1287 _ = l
1288 if m.State != 0 {
1289 i = encodeVarintRuler(dAtA, i, uint64(m.State))
1290 i--
1291 dAtA[i] = 0x8
1292 }
1293 return len(dAtA) - i, nil
1294}
1295
1296func (m *RulesResponse) Marshal() (dAtA []byte, err error) {
1297 size := m.Size()

Callers 3

XXX_MarshalMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

encodeVarintRulerFunction · 0.85

Tested by

no test coverage detected