fCraft.Packet.GetSize C# (CSharp) Method

GetSize() public static method

Returns packet size (in bytes) for a given opcode. Size includes the opcode byte itself.
public static GetSize ( OpCode opcode ) : int
opcode OpCode
return int
        public static int GetSize( OpCode opcode )
        {
            return PacketSizes[( int )opcode];
        }