(source *ZeroCopySource)
| 39 | } |
| 40 | |
| 41 | func (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 | |
| 52 | func FromDecimal(value int64) Fixed64 { |
| 53 | return Fixed64(value * Decimal) |
no test coverage detected