MCPcopy Create free account
hub / github.com/audacity/audacity / hash_step_vformat

Function hash_step_vformat

lib-src/sqlite/shell.c:1926–1939  ·  view source on GitHub ↗

Compute a string using sqlite3_vsnprintf() with a maximum length ** of 50 bytes and add it to the hash. */

Source from the content-addressed store, hash-verified

1924** of 50 bytes and add it to the hash.
1925*/
1926static void hash_step_vformat(
1927 SHA3Context *p, /* Add content to this context */
1928 const char *zFormat,
1929 ...
1930){
1931 va_list ap;
1932 int n;
1933 char zBuf[50];
1934 va_start(ap, zFormat);
1935 sqlite3_vsnprintf(sizeof(zBuf),zBuf,zFormat,ap);
1936 va_end(ap);
1937 n = (int)strlen(zBuf);
1938 SHA3Update(p, (unsigned char*)zBuf, n);
1939}
1940
1941/*
1942** Implementation of the sha3_query(SQL,SIZE) function.

Callers 1

sha3QueryFuncFunction · 0.85

Calls 1

SHA3UpdateFunction · 0.85

Tested by

no test coverage detected