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

Method Marshal

pkg/ingester/client/ingester.pb.go:4421–4429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4419}
4420
4421func (m *Chunk) Marshal() (dAtA []byte, err error) {
4422 size := m.Size()
4423 dAtA = make([]byte, size)
4424 n, err := m.MarshalToSizedBuffer(dAtA[:size])
4425 if err != nil {
4426 return nil, err
4427 }
4428 return dAtA[:n], nil
4429}
4430
4431func (m *Chunk) MarshalTo(dAtA []byte) (int, error) {
4432 size := m.Size()

Callers 15

XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by 1