Difference between revisions of "Memz create"

From The iPhone Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
  +
{{lowercase}}
{{DISPLAYTITLE:memz_create}}
 
  +
{{delete|Pages like this should be combined into one thing}}
  +
 
==Decompilation==
 
==Decompilation==
 
#define kMemzImageContainer 0x4D656D7A
 
#define kMemzImageContainer 0x4D656D7A

Revision as of 17:54, 4 March 2015

This page was marked for deletion.
Reason: Pages like this should be combined into one thing

If you disagree with the reason for deletion, please discuss this deletion request this page's talk page.

Decompilation

#define kMemzImageContainer 0x4D656D7A

MemzDescriptor* memz_create(unsigned char* address, unsigned int size, unsigned int flags) {
    MemzDescriptor* memz = (MemzDescriptor*) malloc(sizeof(MemzDescriptor));
    if(memz != NULL) {
        memz->fileSize = size;
        memz->imageSize = size;
        memz->type = kMemzImageContainer;
        memz->flags = flags;
        memz->address = address;
    }
    return memz;
}