示例#1
0
 public static void Combination()
 {
     foreach (var type in Enum <MessageType> .Members)
     {
         foreach (var control in Enum <FlowControl> .Members)
         {
             var octet = new ControlOctet(type.Value, control.Value);
             Equal(type.Value, octet.Type);
             Equal(control.Value, octet.Control);
         }
     }
 }
示例#2
0
 public static void Combination()
 {
     foreach (MessageType type in Enum.GetValues(typeof(MessageType)))
     {
         foreach (FlowControl control in Enum.GetValues(typeof(FlowControl)))
         {
             var octet = new ControlOctet(type, control);
             Equal(type, octet.Type);
             Equal(control, octet.Control);
         }
     }
 }
示例#3
0
 internal PacketHeaders(ref ReadOnlyMemory <byte> header)
 {
     control = new ControlOctet(ref header);
 }
示例#4
0
 internal PacketHeaders(MessageType type, FlowControl control)
 {
     this.control = new ControlOctet(type, control);
 }