Detect length of msgpack message without additional allocations