1 write to _numResources
mscorlib (1)
system\resources\resourcereader.cs (1)
946
_numResources
= _store.ReadInt32();
19 references to _numResources
mscorlib (19)
system\resources\resourcereader.cs (19)
274
Contract.Assert(index >=0 && index <
_numResources
, "Bad index into hash array. index: "+index);
286
Contract.Assert(index >=0 && index <
_numResources
, "Bad index into name position array. index: "+index);
329
int hi =
_numResources
- 1;
378
while (hi <
_numResources
- 1 && GetNameHash(hi + 1) == hash)
947
if (
_numResources
< 0) {
950
BCLDebug.Log("RESMGRFILEFORMAT", "ReadResources: Expecting " +
_numResources
+ " resources.");
999
_nameHashes = new int[
_numResources
];
1000
for (int i = 0; i <
_numResources
; i++) {
1008
if ((
_numResources
& 0xE0000000) != 0) {
1012
int seekPos = unchecked(4 *
_numResources
);
1030
_namePositions = new int[
_numResources
];
1031
for (int i = 0; i <
_numResources
; i++) {
1044
if ((
_numResources
& 0xE0000000) != 0) {
1048
int seekPos = unchecked(4 *
_numResources
);
1196
int[] sortedDataPositions = new int[
_numResources
];
1204
for(int i=0; i<
_numResources
; i++) {
1222
Contract.Assert(index >= 0 && index <
_numResources
, "Couldn't find data position within sorted data positions array!");
1223
long nextData = (index <
_numResources
- 1) ? sortedDataPositions[index + 1] + _dataSectionOffset : _store.BaseStream.Length;
1354
if (_currentName == _reader.
_numResources
- 1 || _currentName == ENUM_DONE) {