(v complex64)
| 211 | } |
| 212 | |
| 213 | func (e *Encoder) encodeComplex64(v complex64) { |
| 214 | if imag(v) != 0 { |
| 215 | e.errorf("cannot encode complex number: %v, with imaginary values: %v", v, imag(v)) |
| 216 | } |
| 217 | e.e.EncodeFloat32(real(v)) |
| 218 | } |
| 219 | |
| 220 | func (e *Encoder) encodeComplex128(v complex128) { |
| 221 | if imag(v) != 0 { |
no test coverage detected