| 1948 | } |
| 1949 | |
| 1950 | void StringFunctions::AesClose(FunctionContext* context, |
| 1951 | FunctionContext::FunctionStateScope scope) { |
| 1952 | if (scope != FunctionContext::THREAD_LOCAL) return; |
| 1953 | bool* state = reinterpret_cast<bool*>( |
| 1954 | context->GetFunctionState(FunctionContext::THREAD_LOCAL)); |
| 1955 | if (state != nullptr) { |
| 1956 | context->Free(reinterpret_cast<uint8_t*>(state)); |
| 1957 | context->SetFunctionState(scope, nullptr); |
| 1958 | } |
| 1959 | } |
| 1960 | |
| 1961 | // Implementation details and comments are provided in string-functions.cc file. |
| 1962 | StringVal StringFunctions::AesDecrypt(FunctionContext* ctx, const StringVal& expr, |
nothing calls this directly
no test coverage detected