I don’t think the code works at all - at least not from an alignment perspective. For instance, assume T is one byte, and you use align 64, it is aligned on 65 byte boundaries. (This may not be fully correct need to read spec on structure member alignment - but the gist should be true) On Jun 10, 2025, at 10:04 AM, Timur Celik <clk...@gmail.com> wrote: -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/D368E0E8-DE85-43D3-813E-60D359578DF8%40ix.netcom.com. |
- [go-nuts] Ensuring Alignment with unsafe.Poi... Timur Celik
- [go-nuts] Re: Ensuring Alignment with u... Timur Celik
- Re: [go-nuts] Ensuring Alignment with u... Robert Engels
- Re: [go-nuts] Ensuring Alignment with u... Mikk Margus
- Re: [go-nuts] Ensuring Alignment wi... Timur Celik
- Re: [go-nuts] Ensuring Alignmen... 'Axel Wagner' via golang-nuts