serializePayload method
Call to serialize only the payload, no header, returns a int with a serialized size
Implementation
@override
int serializePayload(
imc.CloseSession? message, ByteData byteData, int offset) {
if (message == null) return 0;
var byteOffset = offset;
// field sessid
byteData.setUint32(byteOffset, message.sessid, imc.endianSer);
byteOffset += 4;
return byteOffset - offset;
}