MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / Marshal

Method Marshal

runtime/marshaler.go:10–10  ·  view source on GitHub ↗

Marshal marshals "v" into byte sequence.

(v interface{})

Source from the content-addressed store, hash-verified

8type Marshaler interface {
9 // Marshal marshals "v" into byte sequence.
10 Marshal(v interface{}) ([]byte, error)
11 // Unmarshal unmarshals "data" into "v".
12 // "v" must be a pointer value.
13 Unmarshal(data []byte, v interface{}) error

Callers 15

emitRespFunction · 0.65
TestRawExampleFunction · 0.65
MarshalJSONMethod · 0.65
extensionMarshalJSONFunction · 0.65
TestGenerateXGoTypeFunction · 0.65
MarshalJSONMethod · 0.65
MustMarshalFunction · 0.65
processExtensionsFunction · 0.65

Implementers 4

ProtoMarshallerruntime/marshal_proto.go
JSONPbruntime/marshal_jsonpb.go
JSONBuiltinruntime/marshal_json.go
CustomMarshalerruntime/handler_test.go

Calls

no outgoing calls

Tested by 15

TestRawExampleFunction · 0.52
TestGenerateXGoTypeFunction · 0.52
MustMarshalFunction · 0.52
mustGetReaderFunction · 0.52
MarshalMethod · 0.52
TestEchoPatchFunction · 0.52
testEchoBodyFunction · 0.52