MCPcopy Create free account
hub / github.com/DistributedML/Biscotti / Decode

Function Decode

lib/dedis/protobuf/decode.go:45–47  ·  view source on GitHub ↗

Decode a protocol buffer into a Go struct. The caller must pass a pointer to the struct to decode into. Decode() currently does not explicitly check that all 'required' fields are actually present in the input buffer being decoded. If required fields are missing, then the corresponding fields will

(buf []byte, structPtr interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestCrash1Function · 0.85
TestCrash2Function · 0.85
FuzzFunction · 0.85
TestMapFieldRoundTripsFunction · 0.85
TestArrayFunction · 0.85
TestProtobufFunction · 0.85
TestPaddedFunction · 0.85
TestMapSliceStructFunction · 0.85
Example_protobufFunction · 0.85
TestMarshalFunction · 0.85
putvalueMethod · 0.85

Calls 1

DecodeWithConstructorsFunction · 0.85

Tested by 13

TestCrash1Function · 0.68
TestCrash2Function · 0.68
TestMapFieldRoundTripsFunction · 0.68
TestArrayFunction · 0.68
TestProtobufFunction · 0.68
TestPaddedFunction · 0.68
TestMapSliceStructFunction · 0.68
Example_protobufFunction · 0.68
TestMarshalFunction · 0.68
TestBinaryMarshalerFunction · 0.68
TestNoBinaryMarshalerFunction · 0.68