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

Method SetFilePosition

src/GCodes/GCodeBuffer/BinaryParser.cpp:611–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611void BinaryParser::SetFilePosition(FilePosition fpos) noexcept
612{
613 if (fpos == noFilePosition)
614 {
615 header->flags = (CodeFlags)(header->flags & ~CodeFlags::HasFilePosition);
616 }
617 else
618 {
619 header->filePosition = fpos;
620 header->flags = (CodeFlags)(header->flags | CodeFlags::HasFilePosition);
621 }
622}
623
624const char* BinaryParser::DataStart() const noexcept
625{

Callers 1

MacroFileClosedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected