MCPcopy Create free account
hub / github.com/comaps/comaps / LessOffset

Class LessOffset

libs/coding/files_container.hpp:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 };
55
56 struct LessOffset
57 {
58 bool operator()(TagInfo const & t1, TagInfo const & t2) const
59 {
60 if (t1.m_offset == t2.m_offset)
61 {
62 // Element with nonzero size should be the last one,
63 // for correct append writer mode (FilesContainerW::GetWriter).
64 return (t1.m_size < t2.m_size);
65 }
66 else
67 return (t1.m_offset < t2.m_offset);
68 }
69 bool operator()(TagInfo const & t1, uint64_t const & t2) const { return (t1.m_offset < t2); }
70 bool operator()(uint64_t const & t1, TagInfo const & t2) const { return (t1 < t2.m_offset); }
71 };
72
73 class EqualTag
74 {

Callers 1

OpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected