#pragma once #include #include #include namespace NYql { size_t GetMethodPtrIndex(uintptr_t ptr); template inline size_t GetMethodIndex(Method method) { uintptr_t ptr; std::memcpy(&ptr, &method, sizeof(uintptr_t)); return GetMethodPtrIndex(ptr); } template inline uintptr_t GetMethodPtr(Method method) { uintptr_t ptr; std::memcpy(&ptr, &method, sizeof(uintptr_t)); return ptr; } }