protocol: Use size_t in serialisation calls

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>