mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 13:12:26 +00:00
Route the 26 raw Buffer reads in GgufHeader and the 2 in SafetensorsHeader through BinaryReader. Add u8, i8, i16, i32, i64, f32 and f64 accessors to BinaryReader, with the same range checks as u16/u32/word, since GGUF metadata stores signed and floating scalars. Every migrated site reads an exact-size buffer from ModelHeaderReader.take(), so outputs and errors are unchanged. Shrink the raw-buffer-read baseline from 102 files / 711 sites to 100 / 683. Refs #11865