const unsigned char* CppSQLite3Binary::getBinary() { if (mbEncoded) { // in/out buffers can be the same mnBinaryLen = sqlite3_decode_binary(mpBuf, mpBuf); if (mnBinaryLen == -1) { // throw CppSQLite3Exception(CPPSQLITE_ERROR, // "Cannot decode binary", // DONT_DELETE_MSG); } mbEncoded = false; } return mpBuf; }
int getDecoded(LPBYTE pInput) { int mnBinaryLen = sqlite3_decode_binary(pInput, pInput); return mnBinaryLen; }