rust/compiler/rustc_serialize
Nicholas Nethercote f2df861c7f Fix the `FileEncoder` buffer size.
It allows a variable size, but in practice we always use the default of
8192 bytes. This commit fixes it to that size, which makes things
slightly faster because the size can be hard-wired in generated code.

The commit also:
- Rearranges some buffer capacity checks so they're all in the same form
  (`x > BUFSIZE`).
- Removes some buffer capacity assertions and comments about them. With
  an 8192 byte buffer, we're not in any danger of overflowing a `usize`.
2023-05-15 08:59:11 +10:00
..
src Fix the `FileEncoder` buffer size. 2023-05-15 08:59:11 +10:00
tests Remove `MemEncoder`. 2023-05-02 12:02:32 +10:00
Cargo.toml Remove `MemEncoder`. 2023-05-02 12:02:32 +10:00