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


12.17.7 Concatenating

Function: $bytevector-total-length init-fx bvs

Given the list of bytevectors bvs: compute the total length of the bytevectors, add it to the fixnum init-fx and return the result. If init-fx is zero: the returned value is the total length of the bytevectors in bvs. The returned value may or may not be in the range of the maximum bytevector size: it may or may not be a fixnum.

Function: $bytevector-concatenate total-len-fx bvs

Concatenate the bytevectors in the list bvs, return the result. The resulting bytevector must have length represented by the non–negative fixnum total-len-fx.

Function: $bytevector-reverse-and-concatenate total-len-fx bvs

Reverse the list of bytevectors bvs and concatenate its items; return the result. The resulting bytevector must have length represented by the non–negative fixnum total-len-fx.