MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / Upcast

Method Upcast

src/util/custom-table.cpp:59–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 // This nested class is instantiated each time a virtual table is scanned.
58 class Cursor { friend class CustomTable;
59 static inline CustomTable::Cursor* Upcast(sqlite3_vtab_cursor* cursor) {
60 return reinterpret_cast<Cursor*>(cursor);
61 }
62
63 inline sqlite3_vtab_cursor* Downcast() {
64 return reinterpret_cast<sqlite3_vtab_cursor*>(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected