def eq

bend-kit-bytes@0.3.3.0 · bytes.bend:576

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import Base

576# Both buffers back, and whether they hold the same bytes.
577def eq(a: Bytes, b: Bytes) -> Bytes & Bytes & Bool:
578  Bytes{+la, xa} = a
579  Bytes{+lb, ya} = b
580  eq.len(U32.is_eq(la, lb), la, xa, lb, ya)

Uses (5)

Used by (2)