Skip to content

Commit 97807bc

Browse files
authored
Merge pull request #32 from GrigoriySokolov/memory_footprint2
reduce memory footprint
2 parents d711dee + 9d594fc commit 97807bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

med/field.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@ class multi_field : public detail::define_meta_info<META_INFO>
239239
return &m_tail->value;
240240
}
241241

242-
field_value m_fields[inplace];
243-
std::size_t m_count {0};
244242
field_value* m_head {nullptr};
245243
field_value* m_tail {nullptr};
244+
std::size_t m_count {0};
245+
field_value m_fields[inplace];
246246
};
247247

248248
} //end: namespace med

med/octet_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ class octets_var_intern
9999
}
100100

101101
private:
102-
uint8_t m_data[MAX_LEN];
103102
num_octs_t m_size {0};
104103
bool m_is_set {false};
104+
uint8_t m_data[MAX_LEN];
105105
};
106106

107107
//fixed length octets with external storage

0 commit comments

Comments
 (0)