Lines Matching defs:bytes
18 // Very basic memcpy. We are copying 4 to 12 bytes most of the time, so there
21 inline void* RawMemcpy(void* destination, const void* source, size_t bytes) {
25 for (size_t i = 0; i < bytes ; i++)
31 // Very basic memset. We are filling 1 to 7 bytes most of the time, so there
34 inline void* RawMemset(void* destination, int value, size_t bytes) {
37 for (size_t i = 0; i < bytes ; i++)
73 // NOTE: Stoyan suggests we can write 8 or even 10 bytes atomically using
78 // to have its eip in the middle of the bytes you change while you change
84 // bytes for our jmp instruction, so let's find the minimum number of
85 // instructions to get 5 bytes.
93 L"in the first 5 bytes."));
108 // Inv: preamble_bytes is the number of bytes (at least 5) that we need to
109 // take from the preamble to have whole instructions that are 5 bytes or more
122 // preamble bytes we moved into the stub) and copy it into our preamble-stub.
138 // original function by first executing the first cbPreamble bytes of the
141 // Overwrite the first 5 bytes of the target function with a jump to our
156 // Set any remaining bytes that were moved to the preamble-stub to INT3 so
170 // stub contains the first stub_size bytes of the original target
172 // instruction after the first cbPreamble bytes.