public uint ReadUInt32() { uint value = (uint) (buffer [position] | (buffer [position + 1] << 8) | (buffer [position + 2] << 16) | (buffer [position + 3] << 24)); position += 4; return value; }
private void PatchResourceDataEntry(ByteBuffer resources) { uint num = resources.ReadUInt32(); resources.position -= 4; resources.WriteUInt32((num - this.GetImageResourceSection().VirtualAddress) + this.rsrc.VirtualAddress); }