Flutter Engine
The Flutter Engine
|
Classes | |
class | Encoder |
This Encoder shares a lot in common with protobufs. It uses variable length ints and size-encoded strings and binary values. Other than being hugely stripped down, the major conceptual difference is that this encoding is UTF8 "safe". This means that it generates a form that should be passed on the wire as UTF8 and then can be very efficiently decoded by JS in the browser which natively handles these kinds of strings. To stay efficient in this range, all numeric data is encoded in only 7 bits.