chickadee » srfi-207 » subbytestring=?

(subbytestring=? bytevector₁ bytevector₂ [start₁ start₂ length])procedure

Compares sub-bytevectors of bytevector₁ and bytevector₂ and returns #t if they are equal and #f otherwise. The spans of length length are compared, starting at start₁ of bytevector₁ and at start₂ of bytevector₂. Both start arguments default to 0, and length defaults to the minimum remaining length between the two bytevectors.

(Extension based on substring=? from (chicken string).)

(subbytestring=? #u8"Vogon poetry" #u8"not Vogon torture!" 0 4 5) ⇒ #t