# `Kayrock.MessageSet`
[🔗](https://github.com/kafkaex/kayrock/blob/main/lib/kayrock/message_set.ex#L1)

Represents a set of messages with the v0 or v1 format

This is the old format that KafkaEx supported

See https://kafka.apache.org/documentation/#recordbatch

# `t`

```elixir
@type t() :: %Kayrock.MessageSet{magic: term(), messages: term()}
```

# `deserialize`

```elixir
@spec deserialize(binary()) :: t()
```

# `deserialize`

# `serialize`

```elixir
@spec serialize(t()) :: iodata()
```

---

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