Commit Graph

255 Commits

Author SHA1 Message Date
2ee2f8c115 core: object: remove legacy iterator interface usage 2025-10-29 14:31:09 +00:00
1e4b5bc4e6 core: btree: replace legacy iterator interface 2025-10-29 14:30:33 +00:00
c2b894ef22 core: queue: replace legacy iterator interface 2025-10-29 14:29:05 +00:00
009b6c6292 core: iterator: re-design b_iterator as a b_object interface 2025-10-29 13:52:27 +00:00
71069a6ebb meta: update clang-format config 2025-10-28 15:21:38 +00:00
6639a84a78 test: update tests 2025-10-28 15:21:19 +00:00
2d29713f57 serial: convert b_serial_ctx to a b_object interface 2025-10-28 15:20:57 +00:00
e63095c458 io: file: update b_stream interface 2025-10-28 15:20:37 +00:00
7ba396933a compress: cstream: convert to a b_object type 2025-10-28 15:20:08 +00:00
f3dd0ddd48 compress: compressor: convert b_compressor to a b_object interface 2025-10-28 15:19:30 +00:00
b58015baff core: type: check if a class tries to implement an interface it doesn't extend or inherit 2025-10-28 15:17:50 +00:00
e8eee9ca0d core: type: make get_type static 2025-10-28 15:16:07 +00:00
5b090c72c7 core: stream: change read/write buffer type from unsigned char* to void* 2025-10-28 15:14:57 +00:00
2687477cb2 core: ringbuffer: update from simple struct to a b_object type 2025-10-28 15:14:09 +00:00
5f2bbc7151 core: class: add functions to get a registered class, and get the name of a class 2025-10-28 15:11:54 +00:00
cd54a4f755 test: move leftover object tests to ds-test 2025-10-26 09:38:45 +00:00
75e9291da3 core: error: update header include guard 2025-10-25 19:36:25 +01:00
d459903efc ds: array: update to_string() to surround string values in quotes 2025-10-25 19:22:44 +01:00
263934dbba ds: bitmap: convert from a static array to a b_object 2025-10-25 19:20:56 +01:00
46b2bec67a test: add a test that reads one utf8 codepoint from a file 2025-10-25 00:06:45 +01:00
02b6e3e3ad serial: toml: use b_string_replace_all_with_stringstream in refill_linebuf 2025-10-25 00:06:11 +01:00
a1b177a5a1 ds: string: add function to copy string data from a b_stringstream
unlike b_stringstream_ptr(), this function supports copying strings
that contain null bytes.
2025-10-25 00:04:38 +01:00
7afc398f68 ds: string: replace utf-8 functions with b_wchar_utf8 interface 2025-10-25 00:04:26 +01:00
a429e76721 core: stream: add utf-8 awareness to b_stream interface
b_stream can now read/write utf-8 encoded data, and will do so unless
the stream is in binary mode.

b_stream will also report an error it encounters invalid utf-8 data
(unless binary mode is enabled).
2025-10-25 00:02:33 +01:00
f6f49faf97 core: encoding: add utf-8 functions from b_string to b_wchar interface 2025-10-25 00:02:15 +01:00
3e82d12476 core: hash: fix hash backends erasing ctx function pointers 2025-10-25 00:01:16 +01:00
7c9a753007 core: object: add nullptr checks to data retrieval functions 2025-10-25 00:00:37 +01:00
e499d8631f test: update b_stream usage 2025-10-24 12:51:54 +01:00
a956e21fc4 io: path: update to_string() to use new b_stream interface 2025-10-24 12:50:15 +01:00
50ed2683ea io: file: change base class to b_stream: implement b_stream virtual functions 2025-10-24 12:48:18 +01:00
508cb75ea3 serial: remove json (de)serialiser
this will be replaced with a new (de)serialiser that won't use
another library's data structures as an intermediary.
2025-10-24 12:45:53 +01:00
749bc8bc5b serial: update b_stream usage 2025-10-24 12:45:43 +01:00
f941c470b6 serial: toml: replace b_string usage with b_stringstream in refill_linebuf 2025-10-24 12:44:45 +01:00
68ed163040 term: error: update b_stringstream usage 2025-10-24 12:43:56 +01:00
3561bdda4b term: paragraph: add missing include 2025-10-24 12:43:42 +01:00
57361b7dae cmd: report: update b_stringstream usage 2025-10-24 12:42:38 +01:00
f50b2216c0 compress: cstream: update b_stream usage 2025-10-24 12:42:13 +01:00
9729ab4f05 ds: number: update to_string() to use new b_stream interface 2025-10-24 12:41:39 +01:00
eb3871f7ac ds: dict: update to_string() to use new b_stream interface 2025-10-24 12:41:26 +01:00
d5136239a8 ds: string: update to_string(); remove legacy b_stream callbacks
b_string will no longer implement the b_stream interface. writing to a string
via b_stream will now be handled by b_stringstream.
2025-10-24 12:39:19 +01:00
0fed0d2718 ds: uuid: update to_string() to use new b_stream interface 2025-10-24 12:38:55 +01:00
4e793eef0e ds: datetime: update to_string() to use new b_stream interface 2025-10-24 12:38:28 +01:00
586d4e3bc4 ds: array: update to_string() to use new b_stream interface 2025-10-24 12:34:20 +01:00
1d9549c0c2 core: error: update b_stringstream usage to use b_stream interface 2025-10-24 12:33:23 +01:00
a5762e537b core: stringstream: convert to a b_object type inheriting from b_stream 2025-10-24 12:32:54 +01:00
fd4f60e37f core: stream: convert to a b_object interface and base class 2025-10-24 12:32:16 +01:00
8840971d83 core: object: add more virtual function dispatch macros 2025-10-24 12:31:51 +01:00
ed105307c7 core: type: fix registration of types that extend something other than b_object 2025-10-24 12:29:24 +01:00
36b624849c core: object: add functions to retrieve multiple parts of an object at once 2025-10-24 12:28:50 +01:00
21c4005819 test: io: update to use new object system 2025-10-19 21:03:01 +01:00