Data transfer between web browser and server are usually done with JSON data, which is in text format. This library helps to create a simple binary format that can be sent/received to/from server. The main advantage of data transfer using binary format is the size.
EzMsg aims to be used as the data transfer for web application, replacing JSON data.
You need to know about these 3 things:
BType
: An enum for types. Available values are: BType.U8
, BType.U16
, BType.U32
, BType.I8
, BType.I16
, BType.I32
, BType.F32
, BType.F64
, BType.BOOL
, BType.STR
.serialize(value, type)
: A function for serialization. Returns buffer.deserialize(buffer, type)
: A function for deserialization. Returns value.Now, go to the Guide Page to learn more.