MCPcopy
hub / github.com/ugorji/go / encodeComplex64

Method encodeComplex64

codec/encode.go:213–218  ·  view source on GitHub ↗
(v complex64)

Source from the content-addressed store, hash-verified

211}
212
213func (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
220func (e *Encoder) encodeComplex128(v complex128) {
221 if imag(v) != 0 {

Callers 3

kComplex64Method · 0.95
encodeMethod · 0.95
EncEncodeComplex64Method · 0.80

Calls 2

errorfMethod · 0.80
EncodeFloat32Method · 0.65

Tested by

no test coverage detected