Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improve `read`/`write`/`pread`/`pwrite` consistency. (#7860) | Samuel Williams | 2023-05-27 | 1 | -69/+116 |
| | | | | | | | * Documentation consistency. * Improve consistency of `pread`/`pwrite` implementation when given length. * Remove HAVE_PREAD / HAVE_PWRITE - it is no longer optional. | ||||
* | Improvements to `IO::Buffer` `read`/`write`/`pread`/`pwrite`. (#7826) | Samuel Williams | 2023-05-24 | 1 | -77/+170 |
| | | | - Fix IO::Buffer `read`/`write` to use a minimum length. | ||||
* | Fix mutation on shared strings. (#7837) | Samuel Williams | 2023-05-22 | 1 | -7/+12 |
| | |||||
* | Rename `data` -> `buffer` for better readability. (#7836) | Samuel Williams | 2023-05-22 | 1 | -386/+386 |
| | |||||
* | Support `IO#pread` / `IO#pwrite` using fiber scheduler. (#7594) | Samuel Williams | 2023-03-31 | 1 | -5/+22 |
| | | | * Skip test if non-blocking file IO is not supported. | ||||
* | Fix incorrect usage of `rb_fiber_scheduler_io_(p)(read|write)`. (#7593) | Samuel Williams | 2023-03-25 | 1 | -4/+4 |
| | |||||
* | IO::Buffer#resize: Free internal buffer if new size is zero (#7569) | Kasumi Hanazuki | 2023-03-25 | 1 | -0/+5 |
| | | | | | | | | | | `#resize(0)` on an IO::Buffer with internal buffer allocated will result in calling `realloc(data->base, 0)`. The behavior of `realloc` with size = 0 is implementation-defined (glibc frees the object and returns NULL, while BSDs return an inaccessible object). And thus such usage is deprecated in standard C (upcoming C23 will make it UB). To avoid this problem, just `free`s the memory when the new size is zero. | ||||
* | Fix spelling (#7389) | John Bampton | 2023-02-27 | 1 | -1/+1 |
| | |||||
* | Adjust `else` style to be consistent in each files [ci skip] | Nobuyoshi Nakada | 2023-02-26 | 1 | -11/+22 |
| | |||||
* | Prefer RB_NUM2LONG for string length. (#7379) | Samuel Williams | 2023-02-25 | 1 | -1/+1 |
| | |||||
* | Add `IO::Buffer.string` for efficient string creation. (#7364) | Samuel Williams | 2023-02-25 | 1 | -0/+30 |
| | |||||
* | [Bug #19459] Remove unnecessary always-true checks (#7362) | Nobuyoshi Nakada | 2023-02-23 | 1 | -17/+7 |
| | | | | | `length` is a required argument for `IO::Buffer#read` and `IO::Buffer#write` methods, and `argc` is already checked with `rb_check_arity`. Also fix the call-seq of `IO::Buffer#read`. | ||||
* | [DOC] Document new methods of IO::Buffer and Fiber::Scheduler (#7016) | Victor Shepelev | 2022-12-24 | 1 | -10/+69 |
| | | | Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz> | ||||
* | Fix missing handling of offset argument in `IO::Buffer` `pread` and ↵ | Samuel Williams | 2022-12-24 | 1 | -4/+18 |
| | | | | `pwrite`. (#7012) | ||||
* | Use consistent style [ci skip] | Nobuyoshi Nakada | 2022-12-02 | 1 | -1/+2 |
| | |||||
* | Fix typos (#6775) | Yudai Takada | 2022-11-20 | 1 | -1/+1 |
| | | | | | | | | | | | * s/Innteger/Integer/ * s/diretory/directory/ * s/Bufer/Buffer/ * s/defalt/default/ * s/covearge/coverage/ | ||||
* | Using UNDEF_P macro | S-H-GAMELINKS | 2022-11-16 | 1 | -4/+4 |
| | |||||
* | [DOC] Fix IO::Buffer#slice rdoc position | Yusuke Nakamura | 2022-11-03 | 1 | -21/+21 |
| | | | | Before this change, rdoc shows empty in 'slice' method section | ||||
* | Fix format specifiers for `size_t` | Nobuyoshi Nakada | 2022-10-26 | 1 | -1/+1 |
| | |||||
* | Add support for anonymous shared IO buffers. (#6580) | Samuel Williams | 2022-10-19 | 1 | -3/+34 |
| | |||||
* | Improvements to IO::Buffer implementation and documentation. (#6525) | Samuel Williams | 2022-10-12 | 1 | -136/+299 |
| | |||||
* | Update `IO::Buffer` read/write to use rb_thread_io_blocking_region. (#6438) | Samuel Williams | 2022-09-26 | 1 | -40/+121 |
| | |||||
* | Add several new methods for getting and setting buffer contents. (#6434) | Samuel Williams | 2022-09-26 | 1 | -103/+406 |
| | |||||
* | [Bug #5317] Use `rb_off_t` instead of `off_t` | Nobuyoshi Nakada | 2022-09-08 | 1 | -14/+14 |
| | | | | Get rid of the conflict with system-provided small `off_t`. | ||||
* | Adjust styles [ci skip] | Nobuyoshi Nakada | 2022-07-27 | 1 | -1/+2 |
| | |||||
* | Append semicolons [ci skip] | Nobuyoshi Nakada | 2022-07-27 | 1 | -44/+44 |
| | |||||
* | Make indents and newlines consistent [ci skip] | Nobuyoshi Nakada | 2022-07-27 | 1 | -34/+46 |
| | |||||
* | Fix a variable name typo in the docs | Shannon Skipper | 2022-06-25 | 1 | -2/+2 |
| | |||||
* | Fix warnings by old gcc | Nobuyoshi Nakada | 2022-06-23 | 1 | -2/+2 |
| | | | | | | * Use PRIxSIZE instead of "z" * Fix sign-compare warning * Suppress unused-but-set-variable warning | ||||
* | Add basic binary operators (and, or, xor, not) to `IO::Buffer`. (#5893) | Samuel Williams | 2022-05-09 | 1 | -0/+405 |
| | |||||
* | Fix rdoc of IO::Buffer [ci skip] | Kazuhiro NISHIYAMA | 2022-05-09 | 1 | -14/+1 |
| | |||||
* | Explicit handling of frozen strings in `IO::Buffer#for`. (#5892) | Samuel Williams | 2022-05-09 | 1 | -25/+97 |
| | |||||
* | io_buffer.c: use mremap based resizing only when mremap available | Yuta Saito | 2022-01-07 | 1 | -1/+1 |
| | | | | | some libc implementations (e.g. wasi-libc) define MREMAP_MAYMOVE, but don't have mremap itself, so guard the use of mremap by HAVE_MREMAP | ||||
* | Remove UTF-8 from documentation. | Samuel Williams | 2022-01-02 | 1 | -7/+0 |
| | |||||
* | [DOC] Adjust IO::Buffer docs (#5374) | Victor Shepelev | 2022-01-02 | 1 | -20/+57 |
| | |||||
* | Fix typos [ci skip] | Kazuhiro NISHIYAMA | 2021-12-25 | 1 | -1/+1 |
| | |||||
* | Add fiber scheduler hooks for `pread`/`pwrite`, and add support to `IO::Buffer`. | Samuel Williams | 2021-12-23 | 1 | -0/+173 |
| | |||||
* | Extended interface for IO::Buffer & documentation. | Samuel Williams | 2021-12-22 | 1 | -77/+735 |
| | |||||
* | Rename IMMUTABLE to READONLY. | Samuel Williams | 2021-12-21 | 1 | -27/+43 |
| | |||||
* | Improve interface for get/set/copy. | Samuel Williams | 2021-12-21 | 1 | -53/+116 |
| | |||||
* | Fix handling of clear with offset and without length. | Samuel Williams | 2021-12-21 | 1 | -1/+3 |
| | |||||
* | Mark non-private mapped files as external. | Samuel Williams | 2021-12-21 | 1 | -8/+7 |
| | |||||
* | Default `IO::Buffer#get_string` to use BINARY encoding. | Samuel Williams | 2021-12-21 | 1 | -1/+1 |
| | |||||
* | Rename `to_str` -> `get_string` and add support for encodings. | Samuel Williams | 2021-12-21 | 1 | -30/+32 |
| | |||||
* | Improved exception usage/classes. | Samuel Williams | 2021-12-21 | 1 | -20/+26 |
| | |||||
* | Fix handling of frozens strings. | Samuel Williams | 2021-12-21 | 1 | -1/+6 |
| | |||||
* | Fix mapping invalid non-file object. | Samuel Williams | 2021-12-21 | 1 | -0/+3 |
| | |||||
* | Improve IO::Buffer resize and introduce ownership transfer. | Samuel Williams | 2021-12-20 | 1 | -41/+149 |
| | |||||
* | Default size for IO::Buffer. | Samuel Williams | 2021-12-19 | 1 | -4/+38 |
| | |||||
* | Fix spelling of DECLAIR_TYPE. | Samuel Williams | 2021-12-19 | 1 | -24/+24 |
| |