Ejemplo n.º 1
0
        public static void GetInstanceListResponse(AppInstanceSequence instances, ByteArray byteArray)
        {
            byteArray.Reset();
            byteArray.WriteHeader();

            byteArray.writeInt(EnumDeamonMethods.CLIENT_GETINSTANCELISTRESPONSE_HASH);
            byteArray.EncryptKey = EnumDeamonMethods.CLIENT_GETINSTANCELISTRESPONSE_HASH;
            byteArray.CRC        = 0;
            byteArray.writeDynamicsInt(ByteArray.globalSeq);
            instances.WriteToByteArray(byteArray);
            ++ByteArray.globalSeq;
            byteArray.writeIntNCRC(byteArray.CRC);
            byteArray.EncryptKey = 0;
        }
Ejemplo n.º 2
0
        public static ByteArray GetInstanceListResponse(AppInstanceSequence instances)
        {
            ByteArray byteArray = new ByteArray();

            byteArray.writeInt(EnumDeamonMethods.CLIENT_GETINSTANCELISTRESPONSE_HASH);
            byteArray.EncryptKey = EnumDeamonMethods.CLIENT_GETINSTANCELISTRESPONSE_HASH;
            byteArray.CRC        = 0;
            byteArray.writeDynamicsInt(ByteArray.globalSeq);
            instances.WriteToByteArray(byteArray);

            ++ByteArray.globalSeq;
            byteArray.writeInt(byteArray.CRC);
            byteArray.EncryptKey = 0;
            return(byteArray);
        }