jefffhaynes / BinarySerializer

A declarative serialization framework for controlling formatting of data at the byte and bit level using field bindings, converters, and code.
MIT License
289 stars 62 forks source link

Support FieldScale for integer types #134

Closed LordMike closed 5 years ago

LordMike commented 5 years ago

Hi,

I'm trying to map a 3-bit number from data, to an integer in a POCO class - the value is scaled by some number (45 in my case). I've observed that FieldScale only works on doubles, and not integers - unfortunately.

Would it be feasible to support integers (and other types) for scales?

Thanks in advance :)

Mike.

jefffhaynes commented 5 years ago

Yup, fixed in 8.3.1 :)