On Saturday, 10 March 2018 at 18:26:43 UTC, Bogdan wrote: > I'm working on a pet project which involves reading various > structure types, or just multi-byte values (uin32_t, uint16_t, > etc) from files, or just from ubyte arrays. > I think you should use ranged types.