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

Method Decode

common/codec/jsonpb.go:44–46  ·  view source on GitHub ↗

Decode bytes to protobuf struct.

(data []byte, pb proto.Message)

Source from the content-addressed store, hash-verified

42
43// Decode bytes to protobuf struct.
44func (e JSONPBEncoder) Decode(data []byte, pb proto.Message) error {
45 return e.unmarshaler.Unmarshal(data, pb)
46}
47
48// Encode HistoryEvent slice to bytes.
49func (e *JSONPBEncoder) EncodeHistoryEvents(historyEvents []*historypb.HistoryEvent) ([]byte, error) {

Callers 6

decodeVisibilityRecordFunction · 0.95
TestArchive_SuccessMethod · 0.95
decodeVisibilityRecordFunction · 0.95
TestArchive_SuccessMethod · 0.95
GetMethod · 0.95
decodeVisibilityRecordFunction · 0.95

Calls 1

UnmarshalMethod · 0.45

Tested by 2

TestArchive_SuccessMethod · 0.76
TestArchive_SuccessMethod · 0.76