private void ReadTypesReferences(BinaryReader reader) { reader.PreserveCurrentPosition(Header.TypeReferencesOffset, () => { for (var i = 0; i < Header.TypeReferencesSize; i++) { var descriptorIndex = reader.ReadInt32(); var descriptor = Dex.Strings[descriptorIndex]; TypeDescriptor.Fill(descriptor, Dex.TypeReferences[i], Dex); } }); }
private void ReadTypesReferences(BinaryReader reader) { reader.PreserveCurrentPosition(header.TypeReferencesOffset, () => { for (int i = 0; i < header.TypeReferencesSize; i++) { int descriptorIndex = reader.ReadInt32(); string descriptor = strings[descriptorIndex]; TypeDescriptor.Fill(descriptor, typeReferences[i]); // freeze the references and cache the encoded value. typeReferences[i].Freeze(); TypeDescriptor.Encode(typeReferences[i]); } }); }