Type Alias Size

Source
pub type Size = u16;
Expand description

The default type we use to represent sizes on the wire.

Since wire messages are limited to 64KB by the transport layer, two bytes is enough to represent any message.

Note that in certain cases, we may use a smaller type.