Amarula.Protocol.Binary.Encoder (amarula v0.1.0)
View SourceBinary encoder for WhatsApp protocol.
Encodes Node structures into binary data following the WhatsApp binary protocol. Ported from src/WABinary/encode.ts
Summary
Functions
Encodes a Node structure into binary data.
Functions
@spec encode(Amarula.Protocol.Binary.Node.t()) :: {:ok, binary()}
Encodes a Node structure into binary data.
Returns {:ok, binary} on success.