Andrey Kirpach

Results 6 comments of Andrey Kirpach

Looking forward to the dark ones.

I think the core issue is not just that "packed" in Zig means something different to C. It's that 1. having a struct with no padding between fields (a `tightly-packed`...

> A fix or workaround for https://github.com/ziglang/zig/issues/17779 that is preventing published packages from being consumed Looks like this was resolved by https://github.com/ziglang/zig/pull/19111

Is there any ETA for this bug?

Possibly related: https://github.com/ziglang/zig/issues/12948 https://github.com/ziglang/zig/issues/10958

I'm using this as a workaround: ```zig const bytes = try reader.readBytesNoEof(@divExact(@bitSizeOf(T), 8)); var result: T= undefined; @memcpy(std.mem.asBytes(&result), bytes[0..], @divExact(@bitSizeOf(T), 8)); ```