#@offsetOf doesnt work with @Vector nither with Arrays
1 messages · Page 1 of 1 (latest)
further more I think it should also work with slices: @offsetOf([]f32, "len") @offsetOf([]f32, "ptr")
an array isn’t a struct, this is a bit silly
it has no field called 0
multiply the offset by the size of f32
this also doesn’t make sense, a slice isn’t a struct
you should never access a slice like that
should be the alignment of f32, but it should be the same on most used platforms