MCPcopy Create free account
hub / github.com/audacity/audacity / ReadData

Method ReadData

libraries/lib-sqlite-helpers/sqlite/Statement.cpp:442–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442int64_t Row::ReadData(int columnIndex, void* buffer, int64_t maxSize) const
443{
444 const auto* data = sqlite3_column_blob(*mStatement, columnIndex);
445
446 if (data == nullptr)
447 return 0;
448
449 const auto size = std::min(maxSize, GetColumnBytes(columnIndex));
450
451 std::memcpy(buffer, data, size);
452
453 return size;
454}
455
456} // namespace audacity::sqlite

Callers 3

GetPendingProjectBlobMethod · 0.45
RemoveDependenciesFunction · 0.45
testReadsMethod · 0.45

Calls 1

minFunction · 0.50

Tested by 1

testReadsMethod · 0.36