24 Commits

Author SHA1 Message Date
Patrick Wuttke
32ccaad00a Added Stream::copyTo() and fixed read flag in FileStream::getFeatures().
Made throwOnError() throw Exception instead of std::runtime_error.
2025-09-22 21:41:55 +02:00
Patrick Wuttke
d8b03893b3 Merge branch 'master' of https://git.mewin.de/mewin/mijin2 2025-07-14 10:08:04 +02:00
Patrick Wuttke
7939d458b3 Added Stream functions for reading and writing 0-terminated strings. 2025-07-14 10:07:57 +02:00
addae96c91 Made Stream::readAsString() and Stream::c_readAsString() work with arbitrary std::basic_string instances. 2025-07-09 00:57:19 +02:00
8ad34427f3 Made TypelessBuffer allocator-aware and split some of its functionality into MemoryView type. 2025-07-07 00:12:34 +02:00
ba23cb0c70 Made the lib work with -fno-exceptions (at least for now). 2025-03-02 14:35:37 +01:00
28ae64169d Possibly fixed some crashes when reading in a coroutine. 2024-12-21 22:30:10 +01:00
41618310e4 Added 'connection refused' stream error. 2024-12-13 10:01:33 +01:00
161fdb6c93 Added throwOnError() for StreamResults. 2024-10-24 18:30:03 +02:00
0d00dec8c7 Made the request stuff work. 2024-10-23 23:55:28 +02:00
9ba097fc2f Added support for completely disabling noexcept using MIJIN_TEST_NO_NOEXCEPT (for testing). 2024-08-29 00:01:23 +02:00
a43f92fb58 More SSL stuff (still doesn't work :/). 2024-08-27 19:52:08 +02:00
f761f2fb07 SSLStream (WIP) 2024-08-21 09:35:49 +02:00
35e7131780 Added some basic HTTP and ip address parsing. 2024-08-18 23:06:09 +02:00
6d111904d4 Added clang-tidy config and cleaned up the code a little. 2024-08-18 13:30:40 +02:00
f0d0ee17ea Implemented tcp sockets (only IPv4) and asynchronous IO (for sockets). 2024-08-16 21:29:33 +02:00
da348c1f40 Added missing <stdexcept> header. 2024-08-15 10:03:16 +02:00
af51973b2a Added a variant of throwOnError that takes an additional error message. 2024-08-03 15:55:57 +02:00
f35ee5f038 Added throwOnError utility function. 2024-07-23 20:16:24 +02:00
c214398fac Deprecated readString() method so it is always clear if you want to read a binary encoded string or the file as string. Also added possibility to open a memory stream from any span. 2024-06-10 23:11:25 +02:00
ce7a7b15c7 Added utilty functions to read an entire file. 2023-11-19 23:45:35 +01:00
a1f1717e22 Added ProcessStream to for running processes (on Linux) and streaming their output.
Added map() function for creating a mapping iterator.
Added mijin::pipe types for map() and join().
2023-08-06 13:52:51 +02:00
04520a5d35 Added more utility and fixed Flag type. 2023-07-08 11:16:37 +02:00
da781b87f2 intial commit 2023-05-29 14:51:44 +02:00