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

Function Encode

lib/dedis/protobuf/encode.go:41–61  ·  view source on GitHub ↗

Encode a Go struct into protocol buffer format. The caller must pass a pointer to the struct to encode.

(structPtr interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestOptionalBytesFunction · 0.85
ExampleEncode_test2Function · 0.85
FuzzFunction · 0.85
TestMapFieldEncodeFunction · 0.85
TestMapFieldRoundTripsFunction · 0.85
TestMapFieldWithNilFunction · 0.85
TestMapWrongSliceValueFunction · 0.85
TestArrayFunction · 0.85
TestProtobufFunction · 0.85
TestPaddedFunction · 0.85
TestMapSliceStructFunction · 0.85

Calls 6

messageMethod · 0.95
isBinaryMarshalerFunction · 0.85
ElemMethod · 0.80
NewMethod · 0.65
MarshalBinaryMethod · 0.45
KindMethod · 0.45

Tested by 15

TestOptionalBytesFunction · 0.68
ExampleEncode_test2Function · 0.68
TestMapFieldEncodeFunction · 0.68
TestMapFieldRoundTripsFunction · 0.68
TestMapFieldWithNilFunction · 0.68
TestMapWrongSliceValueFunction · 0.68
TestArrayFunction · 0.68
TestProtobufFunction · 0.68
TestPaddedFunction · 0.68
TestMapSliceStructFunction · 0.68
Example_protobufFunction · 0.68