getBytesWithHeader() 공개 메소드

public getBytesWithHeader ( bool timedRPC ) : byte[]
timedRPC bool
리턴 byte[]
예제 #1
0
        public static byte[] createRpcPacket(ArrayList contents, bool timedRPC, WorldClient client)
        {
            RPCPacket rpcp = new RPCPacket(client);

            for (int i = 0; i < contents.Count; i++)
            {
                rpcp.appendMsgBlock((byte[])contents[i]);
            }

            return(rpcp.getBytesWithHeader(timedRPC));
        }
예제 #2
0
        public static byte[] createBigRpcPacket(ArrayList[] contents, bool timedRPC, WorldClient client)
        {
            RPCPacket rpcp = new RPCPacket(client);

            // Max size is 4

            for (int i = 0; i < contents.Length; i++)
            {
                RPCPacket temp = new RPCPacket(client);
                for (int j = 0; j < contents[i].Count; j++)
                {
                    temp.appendMsgBlock((byte[])contents[i][j]);
                }
                rpcp.appendRpc(temp);
            }

            return(rpcp.getBytesWithHeader(timedRPC));
        }