swslot.cs

来自「破解的飞信源代码」· CS 代码 · 共 27 行

CS
27
字号
namespace NCindy.Protocol.RUDP.Window
{
    using System;

    internal sealed class SWSlot
    {
        internal long EndByte;
        internal int EndPacketId;
        internal long StartByte;
        internal int StartPacketId;

        internal SWSlot(int startPacketId, int endPacketId, long startByte, long endByte)
        {
            this.StartPacketId = startPacketId;
            this.EndPacketId = endPacketId;
            this.StartByte = startByte;
            this.EndByte = endByte;
        }

        public override string ToString()
        {
            return string.Concat(new object[] { "StartPacketId(", this.StartPacketId, ") EndPacketId(", this.EndPacketId, ") Length(", this.EndByte - this.StartByte, ")" });
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?