MCPcopy Create free account
hub / github.com/dotabuff/manta / quantizedFactory

Function quantizedFactory

field_decoder.go:87–92  ·  view source on GitHub ↗
(f *field)

Source from the content-addressed store, hash-verified

85}
86
87func quantizedFactory(f *field) fieldDecoder {
88 qfd := newQuantizedFloatDecoder(f.bitCount, f.encodeFlags, f.lowValue, f.highValue)
89 return func(r *reader) cell {
90 return floatCell(qfd.decode(r))
91 }
92}
93
94func vectorFactory(n int) fieldFactory {
95 return func(f *field) fieldDecoder {

Callers 1

floatFactoryFunction · 0.85

Calls 3

newQuantizedFloatDecoderFunction · 0.85
floatCellFunction · 0.85
decodeMethod · 0.80

Tested by

no test coverage detected