Portals.Codec.Bin (portals v0.1.0)

Copy Markdown View Source

Explicit wrapper marking a value as the MessagePack bin type rather than str. Plain Elixir binaries encode as UTF-8 strings by default; wrap arbitrary byte payloads (image data, serialized blobs, and other non-text binaries) in %Portals.Codec.Bin{} to force bin encoding.

Summary

Types

t()

@type t() :: %Portals.Codec.Bin{data: binary()}