CreateInstance() public static method

public static CreateInstance ( ) : PacketWriter
return PacketWriter
示例#1
0
文件: Packets.cs 项目: vans163/LKEmu
        public Packet(int packetID, int length)
        {
            m_PacketID = packetID;
            m_Length   = length;

            m_Stream = PacketWriter.CreateInstance(length);
            m_Stream.Write((byte)packetID);
        }
示例#2
0
文件: Packets.cs 项目: vans163/LKEmu
        public Packet(int packetID)
        {
            m_PacketID = packetID;
            m_Length   = 32;

            m_Stream = PacketWriter.CreateInstance();
            m_Stream.Write((byte)packetID);
        }