/patch.c Secret
Created
March 11, 2025 13:56
Support 32bit / 64bit binary writes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
else if (((MVMArrayREPRData *)STABLE(buffer)->REPR_data)->slot_type == MVM_ARRAY_U32 | |
|| ((MVMArrayREPRData *)STABLE(buffer)->REPR_data)->slot_type == MVM_ARRAY_I32) { | |
output_size = ((MVMArray *)buffer)->body.elems * sizeof(MVMuint32); | |
output = (char *)(((MVMArray *)buffer)->body.slots.i32 + ((MVMArray *)buffer)->body.start); | |
} | |
else if (((MVMArrayREPRData *)STABLE(buffer)->REPR_data)->slot_type == MVM_ARRAY_U64 | |
|| ((MVMArrayREPRData *)STABLE(buffer)->REPR_data)->slot_type == MVM_ARRAY_I64) { | |
output_size = ((MVMArray *)buffer)->body.elems * sizeof(MVMuint64); | |
output = (char *)(((MVMArray *)buffer)->body.slots.i64 + ((MVMArray *)buffer)->body.start); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment