MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / FindFileBuffer

Method FindFileBuffer

external/zep/src/editor.cpp:289–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287 }
288
289 ZepBuffer* ZepEditor::FindFileBuffer(const fs::path& filePath) {
290 auto& buffers = GetBuffers();
291 for (auto& buff : buffers) {
292 if (m_pFileSystem->Equivalent(buff->GetFilePath(), filePath)) {
293 return buff.get();
294 }
295 }
296 return nullptr;
297 }
298
299 ZepBuffer* ZepEditor::GetFileBuffer(const fs::path& filePath, uint32_t fileFlags, bool create) {
300 auto path = GetFileSystem().Exists(filePath) ? GetFileSystem().Canonical(filePath) : filePath;

Callers

nothing calls this directly

Calls 3

EquivalentMethod · 0.80
GetFilePathMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected