(f *field)
| 68 | } |
| 69 | |
| 70 | func floatFactory(f *field) fieldDecoder { |
| 71 | switch f.encoder { |
| 72 | case "coord": |
| 73 | return floatCoordDecoder |
| 74 | case "simtime": |
| 75 | return simulationTimeDecoder |
| 76 | case "runetime": |
| 77 | return runeTimeDecoder |
| 78 | } |
| 79 | |
| 80 | if f.bitCount == nil || (*f.bitCount <= 0 || *f.bitCount >= 32) { |
| 81 | return noscaleDecoder |
| 82 | } |
| 83 | |
| 84 | return quantizedFactory(f) |
| 85 | } |
| 86 | |
| 87 | func quantizedFactory(f *field) fieldDecoder { |
| 88 | qfd := newQuantizedFloatDecoder(f.bitCount, f.encodeFlags, f.lowValue, f.highValue) |
no test coverage detected