1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-05 23:37:35 +00:00
Commit graph

1 commit

Author SHA1 Message Date
Lenny Maiorani
58c52b155a LibGfx: Extraction of Streamer from P*MLoader
Problem:
- `Streamer` is the same in [PBM,PGM,PPM]Loader class implementations.

Solution:
- Extract it to its own header file to reduce maintenance burden.
- Implement `read` in terms of `read_bytes` to make the class "DRY".
- Decorate all functions with `constexpr`.
2020-12-21 09:58:27 +01:00