Lines Matching defs:bytelen
853 unsigned int i, j, bytelen;
864 bytelen = 0;
865 for (j = 0; j < trie->hdr.full_len && bytelen < size; j++)
866 bytelen += char_lengths[bytelen];
867 i_assert(bytelen <= size);
869 if (squat_build_add(ctx, uid, data, bytelen) < 0)
875 bytelen = 0;
876 for (j = 0; j < trie->hdr.partial_len && i+bytelen < size; j++)
877 bytelen += char_lengths[i + bytelen];
878 i_assert(i + bytelen <= size);
880 if (squat_build_add(ctx, uid, data + i, bytelen) < 0)
1902 unsigned int char_idx, max_chars, i, j, bytelen;
1911 bytelen = 0;
1912 for (j = 0; j < partial_len && i+bytelen < size; j++)
1913 bytelen += char_lengths[i + bytelen];
1915 ret = squat_trie_lookup_data(ctx->trie, data + i, bytelen,