Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions med/bit_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ class bits_variable
m_least_bits = calc_least_bits(std::size_t(num_bits));
}

uint16_t m_num_bytes {0};
uint8_t m_least_bits {0}; //0 - not set, or 1..8

union
{
uint8_t const* external {nullptr};
uint8_t internal[sizeof(uint64_t)];
} m_data;

uint16_t m_num_bytes {0};
uint8_t m_least_bits {0}; //0 - not set, or 1..8
};

//fixed length bits
Expand Down Expand Up @@ -141,8 +141,8 @@ class bits_fixed<NBITS>
}

private:
bool m_set {false};
uint8_t m_data[size()];
bool m_set {false};
};

template <class TRAITS>
Expand Down
6 changes: 3 additions & 3 deletions med/field.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class multi_field : public detail::define_meta_info<META_INFO>

struct field_value
{
field_type value;
field_value* next;
field_type value;
};

static constexpr std::size_t min = MIN;
Expand Down Expand Up @@ -239,10 +239,10 @@ class multi_field : public detail::define_meta_info<META_INFO>
return &m_tail->value;
}

field_value m_fields[inplace];
std::size_t m_count {0};
field_value* m_head {nullptr};
field_value* m_tail {nullptr};
std::size_t m_count {0};
field_value m_fields[inplace];
};

} //end: namespace med
2 changes: 1 addition & 1 deletion med/octet_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ class octets_var_intern
}

private:
uint8_t m_data[MAX_LEN];
num_octs_t m_size {0};
bool m_is_set {false};
uint8_t m_data[MAX_LEN];
};

//fixed length octets with external storage
Expand Down
2 changes: 1 addition & 1 deletion med/value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ struct numeric_value : IE<IE_VALUE>
#endif

private:
bool m_set{false};
value_type m_value{};
bool m_set{false};
};

/**
Expand Down