Berthold Stoeger
cf7c54bd56
core: turn a memblock in the parser to std::string
...
This avoid memory-management troubles. Had to convert a few
of the parsers (cochran, datatrak, liquivision) to C++.
Also had to convert libdivecomputer.c. This was less
painful than expected.
std::string is used because parts of the code assumes
that the data is null terminated after the last character
of the data. std::string does precisely that.
One disadvantage is that std::string clears its memory
when resizing / initializing. Thus we read the file onto
freshly cleared data, which some might thing is a
performance regression. Until someone shows me that this
matters, I don't care.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-03-10 11:01:42 +13:00
..
2018-07-12 17:12:56 +02:00
2023-10-18 21:34:56 +13:00
2023-04-14 21:20:23 +02:00
2019-05-15 07:37:14 -07:00
2023-04-14 21:20:23 +02:00
2018-07-26 16:32:51 +03:00
2023-10-18 21:34:56 +13:00
2023-10-18 21:34:56 +13:00
2023-04-14 21:20:23 +02:00
2020-04-15 07:58:10 -07:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-10-12 08:22:44 -07:00
2018-10-12 08:22:44 -07:00
2023-04-14 21:20:23 +02:00
2018-07-26 16:32:51 +03:00
2024-03-10 11:01:42 +13:00
2020-05-26 11:33:10 -07:00
2023-04-14 21:20:23 +02:00
2018-08-31 06:33:46 -07:00
2023-04-14 21:20:23 +02:00
2018-07-26 16:32:51 +03:00
2023-04-16 20:23:59 +02:00
2023-02-17 10:49:24 +01:00
2020-02-04 02:17:52 +01:00
2020-01-20 15:49:02 -08:00
2023-04-14 21:20:23 +02:00
2021-04-19 12:51:01 -07:00
2019-12-29 12:32:02 -08:00
2018-09-11 17:22:58 -07:00
2021-04-19 12:51:01 -07:00
2018-09-11 17:25:00 -07:00
2020-04-19 14:27:54 -07:00
2018-09-11 17:25:00 -07:00
2019-12-05 11:48:26 -08:00
2018-09-11 17:25:00 -07:00
2019-12-05 11:48:26 -08:00
2018-09-11 17:25:00 -07:00
2023-07-25 11:19:03 +12:00
2019-12-25 02:57:42 +09:00
2019-12-25 02:57:42 +09:00
2018-09-11 17:25:00 -07:00
2019-12-05 11:48:26 -08:00
2018-09-11 17:25:00 -07:00
2019-12-05 11:48:26 -08:00
2018-09-11 17:25:00 -07:00
2019-12-29 12:31:43 -08:00
2019-12-25 02:57:42 +09:00
2019-12-25 02:57:42 +09:00
2019-12-25 02:57:42 +09:00
2019-12-05 11:48:26 -08:00
2018-09-11 17:25:00 -07:00
2019-12-05 11:48:26 -08:00
2018-09-11 17:25:00 -07:00
2023-06-25 14:40:23 +02:00
2018-09-11 17:25:00 -07:00
2020-01-20 09:55:26 -08:00
2018-09-11 17:25:00 -07:00
2021-01-06 10:18:23 -08:00
2018-09-11 17:25:00 -07:00
2023-04-14 21:20:23 +02:00
2018-07-26 16:32:51 +03:00
2019-06-19 13:11:10 -07:00
2018-04-09 07:59:51 -07:00
2022-08-30 22:34:38 +02:00
2018-07-26 16:32:51 +03:00
2021-04-19 12:51:01 -07:00
2020-04-19 14:27:54 -07:00
2018-10-15 19:46:18 +02:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2023-07-25 11:19:03 +12:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00