MCPcopy Create free account
hub / github.com/DNAProject/DNA / Deserialization

Method Deserialization

common/fixed64.go:41–50  ·  view source on GitHub ↗
(source *ZeroCopySource)

Source from the content-addressed store, hash-verified

39}
40
41func (f *Fixed64) Deserialization(source *ZeroCopySource) error {
42 var eof bool
43
44 t, eof := source.NextInt64()
45 if eof {
46 return io.ErrUnexpectedEOF
47 }
48 *f = Fixed64(t)
49 return nil
50}
51
52func FromDecimal(value int64) Fixed64 {
53 return Fixed64(value * Decimal)

Callers 1

GetSysFeeAmountMethod · 0.95

Calls 2

Fixed64TypeAlias · 0.85
NextInt64Method · 0.80

Tested by

no test coverage detected