Browse Source

[tests] test_base64.c clear buf vs reset

(can be slightly faster to clear buffer than to reset buffer)
master
Glenn Strauss 11 months ago
parent
commit
d44a26bfa3
  1. 2
      src/t/test_base64.c

2
src/t/test_base64.c

@ -9,7 +9,7 @@ inline
static void check_base64 (char *out, const size_t out_sz, const char *in, const size_t in_len, const base64_charset enc) {
force_assert(out_sz == li_to_base64_no_padding(out, out_sz, (const unsigned char *)in, in_len, enc));
buffer_reset(check);
buffer_clear(check);
force_assert(NULL != buffer_append_base64_decode(check, out, out_sz, enc));
force_assert(buffer_eq_slen(check, in, in_len));
}

Loading…
Cancel
Save