MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / Serialize

Method Serialize

projects/Go/proto/protoex/OrderModel.go:72–77  ·  view source on GitHub ↗

Serialize the struct value

(value *Order)

Source from the content-addressed store, hash-verified

70
71// Serialize the struct value
72func (m *OrderModel) Serialize(value *Order) (int, error) {
73 fbeBegin := m.CreateBegin()
74 err := m.model.Set(value)
75 fbeFullSize := m.CreateEnd(fbeBegin)
76 return fbeFullSize, err
77}
78
79// Deserialize the struct value
80func (m *OrderModel) Deserialize() (*Order, int, error) {

Callers 7

CloneMethod · 0.95
SendOrderMessageMethod · 0.45
SendBalanceMessageMethod · 0.45
SendAccountMessageMethod · 0.45
SendOrderMessageMethod · 0.45
SendBalanceMessageMethod · 0.45
SendAccountMessageMethod · 0.45

Calls 3

CreateBeginMethod · 0.95
CreateEndMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected