Allows to perform a copy for the n first bytes from the chunk received.
- Parameters:
-
| chunk | The chunk to copy |
| n | How many bytes to copy from the given chunk. |
- Returns:
- A newly allocated chunk, copied from the given chunk with a size of n bytes. The function will check that the chunk and the n values are not null and non-zero.