def suffix.win
import bend-kit-multipart@0.3.0.0/multipart.bend as Multipartimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
398# ponytail: looks at 64 bytes past the match; padding longer than that counts as data.
399def suffix.win(+s: String) -> U32:
400 +k = suffix(s, True{})
401 Bool.pick(U32, Bool.and(U32.is_eq(k, 2), U32.is_eq(Bytes.count(s, 0), 64)), 1, k)