Ejemplo n.º 1
0
        private byte[] GetCallbackDescriptionFrame(Message message)
        {
            var entryCount = (ushort)message.CallbackPoint.Count();
            var offset     = GetCallbacksStartFrame(message);

            return(DataEncoder.Combine(offset, entryCount, FramesPerCallbackEntry)
                   .GetBytes());
        }
Ejemplo n.º 2
0
        private byte[] GetMessageBodyDescriptionFrame(Message message)
        {
            ushort entryCount = 1;
            var    offset     = GetMessageBodyStartFrame(message, entryCount);

            return(DataEncoder.Combine(offset, entryCount)
                   .GetBytes());
        }
Ejemplo n.º 3
0
        private byte[] GetRoutingDescriptionFrame(Message message)
        {
            var entryCount = (ushort)message.GetMessageRouting().Count();
            var offset     = GetRoutingStartFrame(message, entryCount);

            return(DataEncoder.Combine(offset, entryCount, FramesPerRoutingEntry, message.Hops)
                   .GetBytes());
        }
Ejemplo n.º 4
0
 private byte[] GetTraceOptionsDistributionFrame(Message message)
 => DataEncoder.Combine((ushort)message.TraceOptions, (ushort)message.Distribution)
 .GetBytes();