58 Commits

Author SHA1 Message Date
Xotchkass
c06fc7da98 [core:io/utils] fix buffer size in write_* procs 2025-12-18 20:14:31 +02:00
gingerBill
e4fcebe4bf Empty -> Unsupported 2025-11-14 11:17:38 +00:00
gingerBill
51536fecf4 Move some of the os&os2 errors into io.Error; Rename Empty to Unsupported 2025-11-14 11:08:24 +00:00
Jeroen van Rijn
7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
Jacob Friedman
9492dccb4a Fix incorrect json encoding for control characters < 32 2025-09-10 16:50:12 +02:00
gingerBill
ae02d3d02d Begin supporting string16 across the core library 2025-08-02 11:55:16 +01:00
gingerBill
2561427dd3 Add string16 and cstring16 (UTF-16 based strings) 2025-08-02 11:00:15 +01:00
Feoramund
b7de15caa3 Clarify strconv.append_* to strconv.write_* 2025-06-05 16:56:00 -04:00
Dennis Schön
fbf536f465 core:io small documentation fixes 2025-02-04 21:27:44 +01:00
blob1807
f07a6f463c Fix io.write_escaped_rune not writing full value 2024-12-22 23:10:42 +10:00
IllusionMan1212
8906ffb39c core/io: correctly escape runes greater than 0xFFFF 2024-10-26 01:25:12 +02:00
Feoramund
f453054aff Return 0, nil in all io cases where an empty slice is provided 2024-08-28 19:53:20 +02:00
Feoramund
d66486c17e Make io.Section_Reader set base too
This should fix seeking from `.Start`, getting the `size`, and
`read_at`.

Also make the API consistent with the other `*_init` procs in
`util.odin` by returning the `io.Reader`.
2024-08-28 19:53:20 +02:00
Laytan Laats
56856b6307 io: remove dead code in io.write_at_least 2024-07-08 00:33:50 +02:00
gingerBill
d5e6d722d3 Merge pull request #3045 from laytan/cbor
encoding/cbor
2024-04-15 14:28:52 +01:00
gingerBill
670fc70f1f Remove private attributes for #3227 2024-03-24 13:46:26 +00:00
Laytan Laats
5533a327eb encoding/cbor: initial package implementation 2024-03-04 17:25:34 +01:00
gingerBill
3e7e779abf Replace core:* to base:* where appropriate 2024-01-28 22:18:51 +00:00
Jeroen van Rijn
3e1791aa5c Fix typos 2023-11-13 20:54:19 +01:00
Karl Zylinski
39c85cafa2 Fix for crash when using io.write_u128/io.write_i128 due to buffer being too small 2023-09-22 08:26:41 +02:00
gingerBill
9ee4b76cd9 Just make the io.Reader etc aliases 2023-06-08 16:38:57 +01:00
gingerBill
3f6775e29b Update to new io interface 2023-06-08 16:35:24 +01:00
Laytan Laats
5d54b710e7 fix #2550 json encoding should use surrogate pairs per RFC7159 2023-05-22 17:22:33 +02:00
gingerBill
e008eeac6a Simplify package io by removing different unnecessary types and calls 2022-09-11 15:42:08 +01:00
gingerBill
c90b7c38f1 Rename strings.Builder procedures to be consistent with the rest of the core library 2022-07-11 11:50:08 +01:00
gingerBill
5d190b15d7 Minor improvements to io and os 2022-05-05 15:30:07 +01:00
gingerBill
f20105ddfe Update docs for packages fmt and io 2022-01-24 23:07:06 +00:00
Tetralux
675ba44e67 Fix typo in io.read_at_least() 2021-10-11 12:33:27 +00:00
gingerBill
b1ea291942 Fix typos 2021-10-02 01:13:28 +01:00
gingerBill
c6ff88e85a Add io.write_f16 io.write_f32 io.write_f64 2021-09-29 16:39:02 +01:00
gingerBill
e99061500d Minor clean up of n_read/n_written handling 2021-09-29 14:28:09 +01:00
gingerBill
8e2a0be804 Add an extra optional ^int parameter to most io read/write calls allowing for simplified or_return use with incrementing byte usage 2021-09-29 13:59:47 +01:00
gingerBill
b2164b5da6 Make the io/conv.odin utilities be #optional_ok 2021-09-29 13:24:42 +01:00
gingerBill
057310472e Add io.write_i128 and io.writer_u128 2021-09-29 13:21:49 +01:00
gingerBill
b3f2263442 Add io.write_quoted_* utility procedures to package io 2021-09-29 13:04:59 +01:00
gingerBill
251da264ed Remove unneeded semicolons from the core library 2021-08-31 22:21:13 +01:00
gingerBill
f0437a4242 Enforce core:builtin and core:intrinsics for imports 2021-08-21 13:44:16 +01:00
gingerBill
d99ed692ba Add utility procedures: io.read_ptr; io.write_ptr; io.read_ptr_at; io.write_ptr_at 2021-08-09 12:33:21 +01:00
gingerBill
8827818b1d Clean-up fallback io.read_at and io.write_at behaviour 2021-04-14 21:25:46 +01:00
gingerBill
d24784074c Add extra error to io.Error 2021-04-14 20:17:54 +01:00
gingerBill
b727b6438b Minimize unneeded casts 2021-03-03 14:31:17 +00:00
gingerBill
56980e51da Update package io 2021-01-09 00:30:10 +00:00
gingerBill
f6e2d74d10 Keep -vet happy 2020-12-14 14:36:45 +00:00
gingerBill
aa2562fe7c Replace procedure call 2020-12-14 14:33:32 +00:00
gingerBill
c17d17a9b4 Remove unused procedure 2020-12-14 14:32:34 +00:00
gingerBill
404c9e40ee Update io/util.odin 2020-12-14 14:31:18 +00:00
gingerBill
09a52b7ee6 Fix typos 2020-12-05 16:56:09 +00:00
gingerBill
7b36174c17 Fix formatting 2020-12-05 16:38:26 +00:00
gingerBill
a82c902f99 Minor correction to bytes.Buffer's vtable 2020-12-05 15:36:02 +00:00
gingerBill
4c41045133 Fix typo in package io 2020-12-05 12:03:07 +00:00