chickadee » srfi-74 » blob-copy!

blob-copy! source source-start target target-start nprocedure

Copies data from blob source to blob target. Source-start, target-start, and n must be non-negative exact integers that satisfy

0 <= source-start <= source-start + n <= (blob-length source)

0 <= target-start <= target-start + n <= (blob-length target)

This copies the octets from source at indices [source-start, source-start + n) to consecutive indices in target starting at target-index.

This must work even if the memory regions for the source and the target overlap, i.e., the octets at the target location after the copy must be equal to the octets at the source location before the copy.

The return values are unspecified.