MCPcopy Create free account
hub / github.com/temporalio/temporal / Encode

Method Encode

common/codec/jsonpb.go:39–41  ·  view source on GitHub ↗

Encode protobuf struct to bytes.

(pb proto.Message)

Source from the content-addressed store, hash-verified

37
38// Encode protobuf struct to bytes.
39func (e JSONPBEncoder) Encode(pb proto.Message) ([]byte, error) {
40 return e.marshaler.Marshal(pb)
41}
42
43// Decode bytes to protobuf struct.
44func (e JSONPBEncoder) Decode(data []byte, pb proto.Message) error {

Callers 5

encodeFunction · 0.95
encodeFunction · 0.95
ArchiveMethod · 0.95
EncodeFunction · 0.95

Calls 1

MarshalMethod · 0.65

Tested by 1