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


12.17.3 Comparison

Function: $bytevector= bv1 bv2

Return #t if the bytevector arguments are equal, byte by byte; otherwise return #f.

Function: $bytevector!= bv1 bv2

The arguments must be bytevectors. Return #t if the arguments are different; otherwise return #f.

Function: $bytevector-u8< bv1 bv2
Function: $bytevector-u8> bv1 bv2
Function: $bytevector-u8<= bv1 bv2
Function: $bytevector-u8>= bv1 bv2

These procedures are the extensions to bytevectors of the corresponding orderings on unsigned fixnums; the bytevectors are compared octet by octet.

Function: $bytevector-s8< bv1 bv2
Function: $bytevector-s8> bv1 bv2
Function: $bytevector-s8<= bv1 bv2
Function: $bytevector-s8>= bv1 bv2

These procedures are the extensions to bytevectors of the corresponding orderings on signed fixnums; the bytevectors are compared byte by byte.

Function: $bytevector-u8-max bv1 bv2
Function: $bytevector-u8-min bv1 bv2

Return the maximal or minimal bytevector argument according to $bytevector-u8<.

Function: $bytevector-s8-max bv1 bv2
Function: $bytevector-s8-min bv1 bv2

Return the maximal or minimal bytevector argument according to $bytevector-s8<.