aboutsummaryrefslogtreecommitdiff
path: root/core/bytes/buffer.odin
Commit message (Collapse)AuthorAgeFilesLines
* `Empty` -> `Unsupported`bill/io-error-changesgingerBill2025-11-141-1/+1
|
* Return `0, nil` in all `io` cases where an empty slice is providedFeoramund2024-08-281-0/+6
|
* Check `int(abs)` instead to avoid overflowsFeoramund2024-08-281-2/+3
|
* Measure `bytes.Buffer` size by `length` instead of `capacity`Feoramund2024-08-281-1/+1
|
* Add `Seek` behavior to `bytes.Buffer`Feoramund2024-08-281-1/+24
|
* Return `.EOF` in `bytes.buffer_read_at` insteadFeoramund2024-08-281-1/+1
| | | | This is consistent with the other stream `read` procs
* Add missing `io.Stream_Mode` responsesFeoramund2024-08-281-1/+1
|
* Update `tests\core\encoding\cbor` to use new test runner.Jeroen van Rijn2024-06-021-35/+35
| | | | | | 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.
* improve some Negative_Read/Negative_Write logicLaytan Laats2024-04-251-1/+1
| | | | | | | | 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`.
* _buffer_grow: Preserve allocator if already set via init_buffer_allocatorJeroen van Rijn2023-08-181-1/+4
| | | | Fixes #2756
* Update to new io interfacegingerBill2023-06-081-60/+22
|
* fix bytes.buffer_init_allocator not using given allocator if len/cap is 0Laytan Laats2023-05-091-0/+5
|
* Use `uint` instead of `int` to improve code generation for bounds checkinggingerBill2022-09-271-5/+2
|
* Clean up of the core library to make the stream vtables not be pointers ↵gingerBill2022-09-151-2/+2
| | | | directly.
* Add `buffer_read_ptr` and `buffer_write_ptr`gingerBill2022-07-141-0/+8
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-187/+187
|
* Add buffer_read_at buffer_write_atgingerBill2021-04-141-0/+42
|
* Add `bytes.buffer_write_to` and `bytes.buffer_read_from`gingerBill2020-12-171-8/+54
|
* Make bytes.odin consistent with strings.odin in functionalitygingerBill2020-12-171-0/+10
|
* Minor correction to bytes.Buffer's vtablegingerBill2020-12-051-0/+4
|
* Add `bytes.Buffer`gingerBill2020-12-041-0/+331