| 406 | } |
| 407 | |
| 408 | size_t r2Data(byte* buf, Rational l, ByteOrder byteOrder) { |
| 409 | size_t o = l2Data(buf, l.first, byteOrder); |
| 410 | o += l2Data(buf + o, l.second, byteOrder); |
| 411 | return o; |
| 412 | } |
| 413 | |
| 414 | size_t f2Data(byte* buf, float f, ByteOrder byteOrder) { |
| 415 | // This algorithm assumes that the internal representation of the float |