chickadee » srfi-207 » bytestring-concatenate-reverse

(bytestring-concatenate-reverse bytevector-list [final-bvec end])procedure

With no optional arguments, calling this procedure is equivalent to

(u8vector-concatenate (reverse bytevector-list))

but may be more efficient.

If the optional bytevector argument final-bvec is specified, it is effectively consed onto the beginning of bytevector-list before performing the list-reverse and concatenate operations.

If the optional argument end is given, only the bytes up to but not including end in final-bvec are added to the result.

(Extension based on string-concatenate-reverse from srfi-152.)

(bytestring-concatenate-reverse '(#u8" must be" #u8"Hello, I") #u8" going.XXXX" 7)
 ⇒ #u8"Hello, I must be going."