ZigEmbeddedGroup / serial

Serial port configuration library for Zig
MIT License
53 stars 18 forks source link

Splitting up monolithic file. #16

Closed Cohors1316 closed 4 months ago

Cohors1316 commented 4 months ago

Was trying to build a linux info iterator and got annoyed with trying to find things in the monolith. Mostly caused by windows taking up so much space.

Summary of other stuff I touched:

Cohors1316 commented 4 months ago

Random note: for whatever reason File.readAll will not return if the bytes remaining are less than the buffer size. Pretty darn sure I had a test that worked correctly with no bytes in the read buffer, in fact I know I did because the buffer was a bunch of nulls I had to fill the buffer with zeros first. Maybe it's a linux vs windows thing.

edit: someone broke the windows read funcs in zig master.

Cohors1316 commented 4 months ago

Realized windows is gonna take a lot to fix.