Quicr / new-qmsg

Messaging example on top of QuicR
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Simplify message reading / writing #32

Closed bifurcation closed 2 years ago

bifurcation commented 2 years ago

This PR makes Message own its contents and allows MessageReader to make allocations. This lets us streamline things quite a bit, so that MessageRead and MessageWrite become merely traits of the underlying Read/Write objects. This will also make it simpler to define events that are derived from Message objects.