Amarula.Protocol.Binary.Encoder (amarula v0.1.0)

View Source

Binary 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

encode(node)

@spec encode(Amarula.Protocol.Binary.Node.t()) :: {:ok, binary()}

Encodes a Node structure into binary data.

Returns {:ok, binary} on success.