Esempio n. 1
0
 public NativeObjectEntriesCache(NativeObjectEntries ss)
 {
     Count                = ss.GetNumEntries();
     dataSet              = new SoaDataSet(Count, kCacheEntrySize);
     objectName           = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.objectName));
     instanceId           = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.instanceId));
     size                 = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.size));
     nativeTypeArrayIndex = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.nativeTypeArrayIndex));
     hideFlags            = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.hideFlags));
     flags                = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.flags));
     nativeObjectAddress  = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.nativeObjectAddress));
     rootReferenceId      = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.rootReferenceId));
 }
 public NativeObjectEntriesCache(NativeObjectEntries ss)
 {
     Count                           = ss.GetNumEntries();
     dataSet                         = new SoaDataSet(Count, kCacheEntrySize);
     objectName                      = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.objectName));
     instanceId                      = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.instanceId));
     size                            = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.size));
     nativeTypeArrayIndex            = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.nativeTypeArrayIndex));
     hideFlags                       = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.hideFlags));
     flags                           = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.flags));
     nativeObjectAddress             = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.nativeObjectAddress));
     rootReferenceId                 = DataArray.MakeCache(dataSet, DataSourceFromAPI.ApiToDatabase(ss.rootReferenceId));
     nativeObjectAddressToInstanceId = new Dictionary <ulong, int>((int)nativeObjectAddress.Length);
     for (int i = 0; i < nativeObjectAddress.Length; ++i)
     {
         nativeObjectAddressToInstanceId.Add(nativeObjectAddress[i], instanceId[i]);
     }
 }