126 |
#define mem_code_address(ptr) ((long)(ptr)) |
#define mem_code_address(ptr) ((long)(ptr)) |
127 |
|
|
128 |
#define mem_move_cast(from,too,nbytes) \ |
#define mem_move_cast(from,too,nbytes) \ |
129 |
mem_move((POINTER)(from),(POINTER)(too),(unsigned)(nbytes)) |
mem_move((POINTER)(from),(POINTER)(too),(size_t)(nbytes)) |
130 |
/**< |
/**< |
131 |
* Copies nbytes of data from memory location from to memory location too. |
* Copies nbytes of data from memory location from to memory location too. |
132 |
* The memory regions can be overlapping. |
* The memory regions can be overlapping. |
133 |
* |
* |
134 |
* @param from unsigned, pointer to memory to copy from. |
* @param from Pointer to memory to copy from. |
135 |
* @param too unsigned, pointer to memory to receive copy. |
* @param too Pointer to memory to receive copy. |
136 |
* @param nbytes unsigned, the number of bytes to copy. |
* @param nbytes The number of bytes to copy (size_t). |
137 |
* @return No return value. |
* @return No return value. |
138 |
* @see mem_move() |
* @see mem_move() |
139 |
*/ |
*/ |
150 |
* Copies nbytes of data from memory location from to memory location too. |
* Copies nbytes of data from memory location from to memory location too. |
151 |
* The memory regions can NOT be overlapping. |
* The memory regions can NOT be overlapping. |
152 |
* |
* |
153 |
* @param from unsigned, pointer to memory to copy from. |
* @param from Pointer to memory to copy from. |
154 |
* @param too unsigned, pointer to memory to receive copy. |
* @param too Pointer to memory to receive copy. |
155 |
* @param nbytes size_t, the number of bytes to copy. |
* @param nbytes The number of bytes to copy (size_t). |
156 |
* @return No return value. |
* @return No return value. |
157 |
* @see mem_move_disjoint() |
* @see mem_move_disjoint() |
158 |
*/ |
*/ |
168 |
/**< |
/**< |
169 |
* Replaces nbytes of data at memory location too with byte. |
* Replaces nbytes of data at memory location too with byte. |
170 |
* |
* |
171 |
* @param too unsigned, pointer to start of block to be modified. |
* @param too Pointer to start of block to be modified. |
172 |
* @param byte unsigned, the character to write. |
* @param byte The character to write (unsigned int). |
173 |
* @param nbytes size_t, the number of bytes to modify. |
* @param nbytes The number of bytes to modify (size_t). |
174 |
* @return No return value. |
* @return No return value. |
175 |
* @see mem_repl_byte() |
* @see mem_repl_byte() |
176 |
*/ |
*/ |
188 |
* byte is ignored - it is a placeholder for mem_repl_byte |
* byte is ignored - it is a placeholder for mem_repl_byte |
189 |
* substitutability. |
* substitutability. |
190 |
* |
* |
191 |
* @param too unsigned, pointer to start of block to be modified. |
* @param too Pointer to start of block to be modified. |
192 |
* @param byte unsigned, ignored. |
* @param byte Ignored (unsigned). |
193 |
* @param nbytes size_t, the number of bytes to zero. |
* @param nbytes The number of bytes to zero (size_t). |
194 |
* @return No return value. |
* @return No return value. |
195 |
* @see mem_zero_byte() |
* @see mem_zero_byte() |
196 |
*/ |
*/ |
206 |
/**< |
/**< |
207 |
* Replaces nwords of data at memory location too with word. |
* Replaces nwords of data at memory location too with word. |
208 |
* |
* |
209 |
* @param too unsigned, pointer to start of block to be modified. |
* @param too Pointer to start of block to be modified. |
210 |
* @param word unsigned, the word to write. |
* @param word The word to write (unsigned). |
211 |
* @param nbytes size_t, the number of bytes to modify. |
* @param nbytes The number of bytes to modify (size_t). |
212 |
* @return No return value. |
* @return No return value. |
213 |
* @see mem_repl_word() |
* @see mem_repl_word() |
214 |
*/ |
*/ |