public void FrameS_305() { const ushort recieveSeqNo = 305; var frm1 = new FrameS(recieveSeqNo); var buffer = new byte[Constants.MinFrameLength].AsSpan(); var bytesWritten = frm1.TryWrite(buffer); var desc = ByteUtil.Describe(buffer, 0, length: Constants.MinFrameLength, annotations: FrameS.Annotations); var(error, frm2) = FrameS.Read(buffer.Slice(2)); Assert.Equal(ErrorCode.None, error); Assert.Equal(recieveSeqNo, frm2.RecieveSeqNo); }
public void Send(Guid connectionId, FrameS frame) => SendImpl(connectionId, frame);