MCPcopy Index your code
hub / github.com/cockroachdb/errors / Marshal

Method Marshal

extgrpc/ext_grpc.pb.go:78–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78func (m *EncodedGrpcCode) Marshal() (dAtA []byte, err error) {
79 size := m.Size()
80 dAtA = make([]byte, size)
81 n, err := m.MarshalToSizedBuffer(dAtA[:size])
82 if err != nil {
83 return nil, err
84 }
85 return dAtA[:n], nil
86}
87
88func (m *EncodedGrpcCode) MarshalTo(dAtA []byte) (int, error) {
89 size := m.Size()

Callers 1

TestEncodeDecodeStatusFunction · 0.45

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by 1

TestEncodeDecodeStatusFunction · 0.36