Lines Matching defs:base64
4545 /************************* Begin ../ext/misc/base64.c ******************/
4559 ** between a (binary) blob and base64 text. Base64 can transit a
4576 ** Generated base64 sequences, with their line-feeds included,
4580 ** This SQLite3 extension creates a function, base64(x), which
4581 ** either: converts text x containing base64 to a returned blob;
4582 ** or converts a blob x to returned text containing base64. An
4593 ** *Nix: gcc -O2 -shared -I$SQDIR -fPIC -o base64.so base64.c
4594 ** OSX: gcc -O2 -dynamiclib -fPIC -I$SQDIR -o base64.dylib base64.c
4595 ** Win32: gcc -O2 -shared -I%SQDIR% -o base64.dll base64.c
4596 ** Win32: cl /Os -I%SQDIR% base64.c -link -dll -out:base64.dll
4653 /* Width of base64 lines. Should be an integer multiple of 4. */
4656 /* Encode a byte buffer into base64 text with linefeeds appended to limit
4695 /* Skip over text which is not base64 numeral(s). */
4702 /* Decode base64 text into a byte buffer. */
4750 /* This function does the work for the SQLite base64(x) UDF. */
4751 static void base64(sqlite3_context *context, int na, sqlite3_value *av[]){
4764 sqlite3_result_error(context, "blob expanded to base64 too big", -1);
4784 sqlite3_result_error(context, "blob from base64 may be too big", -1);
4803 sqlite3_result_error(context, "base64 accepts only blob or text", -1);
4808 sqlite3_result_error(context, "base64 OOM", -1);
4826 (db, "base64", 1,
4828 0, base64, 0, 0);
4839 /************************* End ../ext/misc/base64.c ********************/
4859 ** Much like base64 representations, base85 can be sent through a
4982 /* Width of base64 lines. Should be an integer multiple of 5. */