MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / FileBytesCached

Method FileBytesCached

src/GCodes/GCodeInput.cpp:335–338  ·  view source on GitHub ↗

How many bytes have been cached for the given file?

Source from the content-addressed store, hash-verified

333
334// How many bytes have been cached for the given file?
335size_t FileGCodeInput::FileBytesCached(const FileData &file) const noexcept
336{
337 return (lastFileRead == file) ? RegularGCodeInput::BytesCached() : 0;
338}
339
340// Read another chunk of G-codes from the file and return true if more data is available
341GCodeInputReadResult FileGCodeInput::ReadFromFile(FileData &file) noexcept

Callers 1

GetFilePositionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected