Fantasy
搜索结果

    显示/隐藏目录

    BufferPacketParser 类

    BufferPacketParser消息格式化器抽象类 这个不会用在TCP协议中、因此不用考虑分包和粘包的问题。 目前这个只会用在KCP协议中、因为KCP出来的就是一个完整的包、所以可以一次性全部解析出来。 如果是用在其他协议上可能会出现问题。

    继承
    object
    APacketParser
    BufferPacketParser
    InnerBufferPacketParser
    OuterBufferPacketParser
    OuterWebglBufferPacketParser
    实现
    IDisposable
    继承成员
    APacketParser.IsDisposed
    APacketParser.Pack(ref uint, ref long, MemoryStreamBuffer, IMessage)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.PacketParser
    程序集: Fantasy.Net.dll
    语法
    public abstract class BufferPacketParser : APacketParser, IDisposable

    字段

    | 编辑本文 查看源代码

    MessagePacketLength

    声明
    protected int MessagePacketLength
    字段值
    类型 描述
    int
    | 编辑本文 查看源代码

    ProtocolCode

    声明
    protected uint ProtocolCode
    字段值
    类型 描述
    uint
    | 编辑本文 查看源代码

    RouteId

    声明
    protected long RouteId
    字段值
    类型 描述
    long
    | 编辑本文 查看源代码

    RpcId

    声明
    protected uint RpcId
    字段值
    类型 描述
    uint

    方法

    | 编辑本文 查看源代码

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    声明
    public override void Dispose()
    重写
    APacketParser.Dispose()
    | 编辑本文 查看源代码

    UnPack(byte[], ref int, out APackInfo)

    解包方法

    声明
    public abstract bool UnPack(byte[] buffer, ref int count, out APackInfo packInfo)
    参数
    类型 名称 描述
    byte[] buffer

    buffer

    int count

    count

    APackInfo packInfo

    packInfo

    返回
    类型 描述
    bool

    实现

    IDisposable

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX