| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add `buffer_read_ptr` and `buffer_write_ptr` | gingerBill | 2022-07-14 | 1 | -0/+8 |
| | | |||||
| * | Convert all uses of `*_from_slice` to `*_from_bytes` where appropriate | gingerBill | 2022-05-16 | 1 | -1/+2 |
| | | |||||
| * | Add _safe versions | gingerBill | 2022-05-12 | 1 | -0/+43 |
| | | |||||
| * | Correct bytes._split_iterator | gingerBill | 2022-02-14 | 1 | -5/+5 |
| | | |||||
| * | Correct _split_iterator | gingerBill | 2022-02-14 | 1 | -32/+8 |
| | | |||||
| * | Remove the hidden NUL byte past the end from `bytes.clone` | gingerBill | 2022-01-01 | 1 | -2/+1 |
| | | |||||
| * | Fix `fields_proc` in `strings` and `bytes` | gingerBill | 2021-12-11 | 1 | -1/+1 |
| | | |||||
| * | Remove unneeded semicolons from the core library | gingerBill | 2021-08-31 | 3 | -685/+685 |
| | | |||||
| * | Move `bytes` utils back to EXR code for the time being. | Jeroen van Rijn | 2021-06-22 | 1 | -187/+0 |
| | | | | | Also, allow PNG example to be run directly from `core:image/png` directory. | ||||
| * | ZLIB: Start optimization. | Jeroen van Rijn | 2021-06-21 | 1 | -4/+10 |
| | | |||||
| * | Fix comment. | Jeroen van Rijn | 2021-06-18 | 1 | -2/+2 |
| | | |||||
| * | Add `bytes.buffer_create_of_type` and `bytes.buffer_convert_to_type`. | Jeroen van Rijn | 2021-06-18 | 1 | -0/+181 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convenience functions to reinterpret or cast one buffer to another type, or create a buffer of a specific type. Example: ```odin fmt.println("Convert []f16le (x2) to []f32 (x2)."); b := []u8{0, 60, 0, 60}; // == []f16{1.0, 1.0} res, backing, had_to_allocate, err := bytes.buffer_convert_to_type(2, f32, f16le, b); fmt.printf("res : %v\n", res); // [1.000, 1.000] fmt.printf("backing : %v\n", backing); // &Buffer{buf = [0, 0, 128, 63, 0, 0, 128, 63], off = 0, last_read = Invalid} fmt.printf("allocated: %v\n", had_to_allocate); // true fmt.printf("err : %v\n", err); // false if had_to_allocate { defer bytes.buffer_destroy(backing); } fmt.println("\nConvert []f16le (x2) to []u16 (x2)."); res2: []u16; res2, backing, had_to_allocate, err = bytes.buffer_convert_to_type(2, u16, f16le, b); fmt.printf("res : %v\n", res2); // [15360, 15360] fmt.printf("backing : %v\n", backing); // Buffer.buf points to `b` because it could be converted in-place. fmt.printf("allocated: %v\n", had_to_allocate); // false fmt.printf("err : %v\n", err); // false if had_to_allocate { defer bytes.buffer_destroy(backing); } fmt.println("\nConvert []f16le (x2) to []u16 (x2), force_convert=true."); res2, backing, had_to_allocate, err = bytes.buffer_convert_to_type(2, u16, f16le, b, true); fmt.printf("res : %v\n", res2); // [1, 1] fmt.printf("backing : %v\n", backing); // Buffer.buf points to `b` because it could be converted in-place. fmt.printf("allocated: %v\n", had_to_allocate); // false fmt.printf("err : %v\n", err); // false if had_to_allocate { defer bytes.buffer_destroy(backing); } ``` | ||||
| * | Core library clean up: Make range expressions more consistent and replace ↵ | gingerBill | 2021-06-14 | 1 | -1/+1 |
| | | | | | uses of `..` with `..=` | ||||
| * | Add `bytes.remove`, `bytes.remove_all`, `strings.remove`, `strings.remove_all` | gingerBill | 2021-05-23 | 1 | -0/+8 |
| | | |||||
| * | Add truncate_to_byte and truncate_to_rune for packages strings and bytes | gingerBill | 2021-04-22 | 1 | -0/+15 |
| | | |||||
| * | Add buffer_read_at buffer_write_at | gingerBill | 2021-04-14 | 1 | -0/+42 |
| | | |||||
| * | `split*_iterator` procedures for package bytes and strings | gingerBill | 2021-03-18 | 1 | -0/+110 |
| | | |||||
| * | Replace usage of `inline proc` with `#force_inline proc` in the core library | gingerBill | 2021-02-23 | 1 | -4/+4 |
| | | |||||
| * | Add `bytes.buffer_write_to` and `bytes.buffer_read_from` | gingerBill | 2020-12-17 | 1 | -8/+54 |
| | | |||||
| * | Make bytes.odin consistent with strings.odin in functionality | gingerBill | 2020-12-17 | 2 | -54/+49 |
| | | |||||
| * | Rename bytes/strings.odin to bytes/bytes.odin | gingerBill | 2020-12-17 | 1 | -0/+0 |
| | | |||||
| * | Minor correction to bytes.Buffer's vtable | gingerBill | 2020-12-05 | 1 | -0/+4 |
| | | |||||
| * | Make bytes.Reader and strings.Reader have the same interface | gingerBill | 2020-12-04 | 1 | -3/+3 |
| | | |||||
| * | Update bytes.Reader | gingerBill | 2020-12-04 | 1 | -95/+129 |
| | | |||||
| * | Add `bytes.Buffer` | gingerBill | 2020-12-04 | 1 | -0/+331 |
| | | |||||
| * | Begin work on `package bytes` (`[]byte` equivalent of `package strings`) | gingerBill | 2020-12-04 | 2 | -0/+1175 |