MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / Section_init_data

Function Section_init_data

lib/asmjit/asmjit/core/codeholder.cpp:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89static ASMJIT_INLINE void Section_init_data(Section* section, uint32_t section_id, SectionFlags flags, uint32_t alignment, int order) noexcept {
90 section->_section_id = section_id;
91
92 // These two fields are not used by sections (see \ref LabelEntry for more details about why).
93 section->_internal_label_type = LabelType::kAnonymous;
94 section->_internal_label_flags = LabelFlags::kNone;
95
96 section->assign_flags(flags);
97 section->_alignment = alignment;
98 section->_order = order;
99 section->_offset = 0;
100 section->_virtual_size = 0;
101}
102
103static ASMJIT_INLINE void Section_init_buffer(Section* section) noexcept {
104 section->_buffer = CodeBuffer{};

Callers 2

new_sectionMethod · 0.85

Calls 1

assign_flagsMethod · 0.80

Tested by

no test coverage detected