Calculate type size correctly.
Add protocol tester.
Packet size should be size_t.
Add ringbuffer implementation.
Add ringbuffer to list of compile targets.