chickadee » srfi-66 » u8vector-copy!

u8vector-copy! source source-start target target-start nprocedure

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

  • 0 <= source-start <= source-start + n <= (u8vector-length source)
  • 0 <= target-start <= target-start + n <= (u8vector-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 number of return values and the return values are unspecified. However, the number of return values is such that it is accepted by a continuation created by begin. Analogous to vector-ref.