OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::UndoRedo::MutableHistoryInterval::Data Struct Reference

Public Member Functions

bool matches (const std::string &rhs)
bool matches_timestamp (uint64_t timestamp)

Public Attributes

size_t refcnt
size_t size
char data [1]

Detailed Description

Member Function Documentation

◆ matches()

bool Slic3r::UndoRedo::MutableHistoryInterval::Data::matches ( const std::string & rhs)
inline
360{ return this->size == rhs.size() && memcmp(this->data, rhs.data(), this->size) == 0; }
char data[1]
Definition UndoRedo.cpp:357
size_t size
Definition UndoRedo.cpp:356

◆ matches_timestamp()

bool Slic3r::UndoRedo::MutableHistoryInterval::Data::matches_timestamp ( uint64_t timestamp)
inline
363{ assert(timestamp > 0); assert(this->size > 8); return memcmp(this->data, &timestamp, 8) == 0; }

Member Data Documentation

◆ data

char Slic3r::UndoRedo::MutableHistoryInterval::Data::data[1]

◆ refcnt

size_t Slic3r::UndoRedo::MutableHistoryInterval::Data::refcnt

◆ size

size_t Slic3r::UndoRedo::MutableHistoryInterval::Data::size

The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/UndoRedo.cpp