Add support for complex64 and complex128. This will likely require #42 to be completed first, as it will likely be encoded as the real part (float) followed by the imaginary part (also a float).
In order to transparently work with Reader routines and length detection, it should be encoded as two full sequential floats, preceeded by a header that includes only a byte count which gives total, as total encoded bytes can be as large as 18; too large to fit into the LLLL field (ugh).
Tests which must be added:
[x] Basic test of enc/decComplex (primitives_test.go)
[x] Enc and Dec test with complex values (primtives_test.go)
[x] Test of complex within a map, Enc/Dec_Map_NoIndirection (maps_test.go)
[x] Test of complex within a slice, Enc/Dec_Slice_NoIndirection (slices_test.go)
[x] Test of complex written with Writer, Test_Writer_Enc (streams_test.go)
[x] Test of complex read from sequence with Reader, Test_Reader_Dec_sequential (streams_test.go)
[x] Test of complex read with Reader, new test Test_Reader_Dec_complex (streams_test.go)
[x] Test of complex within a non-trivial structure, Test_EncAndDec_NontrivialStructure (rezi_test.go)
Add support for
complex64
andcomplex128
. This will likely require #42 to be completed first, as it will likely be encoded as the real part (float) followed by the imaginary part (also a float).In order to transparently work with Reader routines and length detection, it should be encoded as two full sequential floats, preceeded by a header that includes only a byte count which gives total, as total encoded bytes can be as large as 18; too large to fit into the LLLL field (ugh).
Tests which must be added:
enc
/decComplex
(primitives_test.go)Enc
andDec
test with complex values (primtives_test.go)Enc
/Dec_Map_NoIndirection
(maps_test.go)Enc
/Dec_Slice_NoIndirection
(slices_test.go)Test_Writer_Enc
(streams_test.go)Test_Reader_Dec_sequential
(streams_test.go)Test_Reader_Dec_complex
(streams_test.go)Test_EncAndDec_NontrivialStructure
(rezi_test.go)