# `Portals.Codec.Bin`
[🔗](https://github.com/Ziinc/portals/blob/v0.1.0/lib/portals/codec/bin.ex#L1)

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.

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
