Files
neovim/src/nvim/os
bfredl 064483a2b4 refactor(fileio): use a linear buffer for FileDescriptor
Using a ring buffer for buffered synchronous fileio is just unnecessary
complexity.

- when reading, we always consume the _entire_ buffer before getting
  into syscalls. Thus we reset the buffer to its initial position before
  when we actually read.
- when writing and buffer is full, we always flush the entire buffer
  before starting to buffer again. So we can reset the buffer to its
  initial state.

Also no static buffers are needed for writing and skipping. Needing an
extra copy for each write completely defeated the purpose of
a ring buffer (if there had been one)
2024-05-30 11:40:02 +02:00
..
2024-01-11 21:37:23 +01:00
2024-01-11 21:37:23 +01:00
2024-01-11 21:37:23 +01:00
2023-12-21 17:38:42 +01:00
2023-11-28 07:47:36 +08:00
2023-11-12 21:26:39 +01:00
2024-01-11 21:37:23 +01:00
2024-01-11 21:37:23 +01:00
2024-01-11 21:37:23 +01:00
2024-01-11 21:37:23 +01:00
2024-03-28 09:32:32 +08:00
2024-01-11 21:37:23 +01:00
2023-11-28 22:23:56 +01:00
2024-01-11 21:37:23 +01:00
2024-01-11 21:37:23 +01:00
2023-11-27 15:50:45 +01:00