Next: , Previous: , Up: syslib vectors   [Index]


12.16.5 Copying between vectors

The arguments vec to these operations must be fixnums, the arguments fx must be fixnums. The following bindings are exported by the library (vicare system $vectors).

Unsafe Operation: $vector-self-copy-forwards! vec src.start dst.start count

Copy count items of vec from src.start inclusive to vec itself starting at dst.start inclusive. The copy happens forwards, so it is suitable for the case src.start greater than dst.start.

Unsafe Operation: $vector-self-copy-backwards! vec src.end dst.end count

Copy count items of vec from src.end exclusive to vec itself starting at dst.end exclusive. The copy happens backwards, so it is suitable for the case src.end less than dst.end.

Unsafe Operation: $vector-copy-source-range! src.vec src.start src.end dst.vec dst.start

Copy items from src.vec to dst.vec; return dst.vec. Copy the items from the source slots from index src.start (inclusive) to src.end (exclusive), in the destination slots starting at index dst.start.

Unsafe Operation: $vector-copy-source-count! src.vec src.start dst.vec dst.start count

Copy count items from src.vec to dst.vec; return dst.vec. Copy the items the source slots at index src.start inclusive, to the destination slots at index dst.start inclusive.