you wrote: > so i know how much data to read could you use `sizeof` for that purpose https://nim-lang.org/docs/system.html#sizeof%2Ctypedesc