Exemplo n.º 1
0
        private static MultiGroupBroadcastDataMessage CreateMultiGroupBroadcastDataMessage(ref MessagePackReader reader, int arrayLength)
        {
            var groupList = ReadStringArray(ref reader, "groupList");
            var payloads  = ReadPayloads(ref reader);

            var result = new MultiGroupBroadcastDataMessage(groupList, payloads);

            if (arrayLength >= 4)
            {
                result.ReadExtensionMembers(ref reader);
            }
            return(result);
        }
Exemplo n.º 2
0
 private static void WriteMultiGroupBroadcastDataMessage(ref MessagePackWriter writer, MultiGroupBroadcastDataMessage message)
 {
     writer.WriteArrayHeader(3);
     writer.Write(ServiceProtocolConstants.MultiGroupBroadcastDataMessageType);
     WriteStringArray(ref writer, message.GroupList);
     WritePayloads(ref writer, message.Payloads);
 }