private void PatchResourceDirectoryTable(ByteBuffer resources) { resources.Advance(12); int num = resources.ReadUInt16() + resources.ReadUInt16(); for (int i = 0; i < num; i++) { this.PatchResourceDirectoryEntry(resources); } }
void PatchResourceDirectoryTable(ByteBuffer resources) { resources.Advance(12); var entries = resources.ReadUInt16() + resources.ReadUInt16(); for (int i = 0; i < entries; i++) { PatchResourceDirectoryEntry(resources); } }
private void PatchResourceDirectoryEntry(ByteBuffer resources) { resources.Advance(4); uint num = resources.ReadUInt32(); int position = resources.position; resources.position = ((int)num) & 0x7fffffff; if ((num & 0x80000000) != 0) { this.PatchResourceDirectoryTable(resources); } else { this.PatchResourceDataEntry(resources); } resources.position = position; }
private void PatchResourceDirectoryEntry(ByteBuffer resources) { resources.Advance(4); uint num = resources.ReadUInt32(); int num1 = resources.position; resources.position = (int)(num & 2147483647); if ((num & -2147483648) == 0) { this.PatchResourceDataEntry(resources); } else { this.PatchResourceDirectoryTable(resources); } resources.position = num1; }
private void PatchResourceDirectoryEntry(ByteBuffer resources) { resources.Advance(4); uint num = resources.ReadUInt32(); int position = resources.position; resources.position = (int)(num & 0x7FFFFFFF); if (((int)num & -2147483648) != 0) { PatchResourceDirectoryTable(resources); } else { PatchResourceDataEntry(resources); } resources.position = position; }
void PatchResourceDirectoryEntry(ByteBuffer resources) { resources.Advance(4); var child = resources.ReadUInt32(); var position = resources.position; resources.position = (int)child & 0x7fffffff; if ((child & 0x80000000) != 0) { PatchResourceDirectoryTable(resources); } else { PatchResourceDataEntry(resources); } resources.position = position; }
void PatchResourceDirectoryTable(ByteBuffer resources) { resources.Advance (12); var entries = resources.ReadUInt16 () + resources.ReadUInt16 (); for (int i = 0; i < entries; i++) PatchResourceDirectoryEntry (resources); }
void PatchResourceDirectoryEntry(ByteBuffer resources) { resources.Advance (4); var child = resources.ReadUInt32 (); var position = resources.position; resources.position = (int) child & 0x7fffffff; if ((child & 0x80000000) != 0) PatchResourceDirectoryTable (resources); else PatchResourceDataEntry (resources); resources.position = position; }
static void PatchResourceDirectoryTable(ByteBuffer resources, Section old, Section @new) { resources.Advance(12); int num = resources.ReadUInt16() + resources.ReadUInt16(); for (int i = 0; i < num; i++) { PatchResourceDirectoryEntry(resources, old, @new); } }
static void PatchResourceDirectoryEntry(ByteBuffer resources, Section old, Section @new) { resources.Advance(4); uint num = resources.ReadUInt32(); int position = resources.Position; resources.Position = ((int)num) & 0x7fffffff; if ((num & 0x80000000) != 0) { PatchResourceDirectoryTable(resources, old, @new); } else { PatchResourceDataEntry(resources, old, @new); } resources.Position = position; }
void PatchResourceDirectoryTable(ByteBuffer resources) { if (!resources.SizeAvailable (16)) return; resources.Advance (12); var entries = resources.ReadUInt16 () + resources.ReadUInt16 (); for (int i = 0; i < entries; i++) PatchResourceDirectoryEntry (resources); }