gingerBill
e4fcebe4bf
Empty -> Unsupported
2025-11-14 11:17:38 +00: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
6798d15ecb
Check int(abs) instead to avoid overflows
2024-08-28 19:53:20 +02:00
Feoramund
e83b982afe
Measure bytes.Buffer size by length instead of capacity
2024-08-28 19:53:20 +02:00
Feoramund
7c6cc81041
Add Seek behavior to bytes.Buffer
2024-08-28 19:53:20 +02:00
Feoramund
8251f4d7d0
Return .EOF in bytes.buffer_read_at instead
...
This is consistent with the other stream `read` procs
2024-08-28 19:53:20 +02:00
Feoramund
981a2e1a00
Add missing io.Stream_Mode responses
2024-08-28 19:53:19 +02:00
Jeroen van Rijn
a27b167218
Update tests\core\encoding\cbor to use new test runner.
...
It was leaky and required a substantial number of `loc := #caller_location` additions to parts of the core library to make it easier to track down how and where it leaked.
The tests now run fine multi-threaded.
2024-06-02 14:47:07 -04:00
Laytan Laats
d3bd1c2110
improve some Negative_Read/Negative_Write logic
...
Returns the actual error if one is set, instead of swallowing it for the
less descriptive negative error.
Also fixes a out-of-bounds slice error in `bufio.writer_write` because
it wasn't checking the returned `m`.
2024-04-25 19:08:48 +02:00
Jeroen van Rijn
99d6a077fe
_buffer_grow: Preserve allocator if already set via init_buffer_allocator
...
Fixes #2756
2023-08-18 22:16:59 +02:00
gingerBill
3f6775e29b
Update to new io interface
2023-06-08 16:35:24 +01:00
Laytan Laats
7a04b7262e
fix bytes.buffer_init_allocator not using given allocator if len/cap is 0
2023-05-09 21:25:15 +02:00
gingerBill
c4d19dfa92
Use uint instead of int to improve code generation for bounds checking
2022-09-27 22:31:46 +01:00
gingerBill
f50fc33749
Clean up of the core library to make the stream vtables not be pointers directly.
2022-09-15 10:00:50 +01:00
gingerBill
d3081bd889
Add buffer_read_ptr and buffer_write_ptr
2022-07-14 15:26:50 +01:00
gingerBill
251da264ed
Remove unneeded semicolons from the core library
2021-08-31 22:21:13 +01:00
gingerBill
cd2476e084
Add buffer_read_at buffer_write_at
2021-04-14 20:13:26 +01:00
gingerBill
e6dfc22b8a
Add bytes.buffer_write_to and bytes.buffer_read_from
2020-12-17 00:47:05 +00:00
gingerBill
1470cab842
Make bytes.odin consistent with strings.odin in functionality
2020-12-17 00:36:25 +00:00
gingerBill
a82c902f99
Minor correction to bytes.Buffer's vtable
2020-12-05 15:36:02 +00:00
gingerBill
9b22583397
Add bytes.Buffer
2020-12-04 20:18:41 +00:00