A DataFormat tells Antidote how JavaScript values should be stored in the database (in Sets, Registers, Maps). A DataFormat has to implement two functions jsToBinary and binaryToJs to convert between binary data and JavaScript values.
The default implementation is MsgpackDataFormat.
Inverse of jsToBinary
Method to encode objects before they are written to the database
Generated using TypeDoc
A DataFormat tells Antidote how JavaScript values should be stored in the database (in Sets, Registers, Maps). A DataFormat has to implement two functions jsToBinary and binaryToJs to convert between binary data and JavaScript values.
The default implementation is MsgpackDataFormat.