MCPcopy
hub / github.com/keploy/keploy / Unmarshal

Method Unmarshal

pkg/http2.go:60–66  ·  view source on GitHub ↗
(data []byte, v interface{})

Source from the content-addressed store, hash-verified

58 return proto.Marshal(v.(proto.Message))
59}
60func (passthroughCodec) Unmarshal(data []byte, v interface{}) error {
61 if m, ok := v.(*rawMessage); ok {
62 m.data = append([]byte(nil), data...)
63 return nil
64 }
65 return proto.Unmarshal(data, v.(proto.Message))
66}
67
68// createLengthPrefixedMessage creates a GrpcLengthPrefixedMessage from a raw message payload.
69func createLengthPrefixedMessage(data []byte) models.GrpcLengthPrefixedMessage {

Callers 15

ProtoWireToJSONFunction · 0.80
SimulateGRPCFunction · 0.80
prepareHTTPRequestFunction · 0.80
compareJSONTextWithNoiseFunction · 0.80
canonicalizeSSEDataValueFunction · 0.80
DetectNoiseFieldsInRespFunction · 0.80
IsJSONFunction · 0.80
IsXMLFunction · 0.80
UnmarshallJSONFunction · 0.80
AddHTTPBodyToMapFunction · 0.80

Calls

no outgoing calls