Example #1
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_VV_Data_Response tgt = new FFTgt_H2G_GVA_VV_Data_Response();

            tgt.ValidationRequestID = FreeformHelper.GetValue <int>(buffer, 0, 9);
            tgt.ValidationIDs       = FreeformHelper.CopyToBuffer(buffer, 9, buffer.Length - 9);
            return(tgt);
        }
Example #2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_VP_Response tgt = new FFTgt_H2G_GVA_VP_Response();

            tgt.MaxValidationID      = FreeformHelper.GetValue <int>(buffer, 0, 1);
            tgt.MinLevelValidationID = FreeformHelper.GetValue <int>(buffer, 1, 2);
            return(tgt);
        }
Example #3
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_GVA_VV_Data_Request tgt = new FFTgt_G2H_GVA_VV_Data_Request();

            tgt.ValidationRequestID = FreeformHelper.GetValue <int>(buffer, 0, 9);
            tgt.NumValidationID     = FreeformHelper.GetValue <int>(buffer, 9, 1);
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_CodeDownload_FileDownload tgt = new FFTgt_H2G_CodeDownload_FileDownload();

            tgt.FileType       = buffer[0].GetAppId <FF_GmuId_FileDownloadFileType, FF_AppId_FileDownloadFileType>();
            tgt.Length         = FreeformHelper.GetBytesToNumberInt32(buffer, 1, 4);
            tgt.CompressedFile = buffer.CopyToBuffer(5, tgt.Length);
            tgt.CRC            = FreeformHelper.GetValue <short>(buffer, tgt.Length + 5, 2);
            return(tgt);
        }