Skip to content

Commit 2fd90e0

Browse files
committed
only little endian support right now
1 parent d00599c commit 2fd90e0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/message.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ namespace libdbc {
1919
if (size > 8)
2020
return false; // not supported yet
2121

22+
// Currently only little endian will be supported, because
23+
// The code below was not tested with bigendian!
24+
// All signals must be little endian
25+
for (const auto& signal: m_signals) {
26+
if (signal.is_bigendian)
27+
return false;
28+
}
29+
2230
uint64_t data_little_endian = 0;
2331
uint64_t data_big_endian = 0;
2432
for (int i=0; i < size; i++) {

src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ namespace utils {
7272
return start == end ? std::string() : line.substr(start, end - start + 1);
7373
}
7474

75-
} // Namespace Utils
75+
} // Namespace Utils

0 commit comments

Comments
 (0)