protocol_helper.hpp: Differentiate between length in bits and bytes
examples/test.cpp: Use new length members