这是Swift中的一个结构:
struct A { var x var y var z }
我应该怎么做,以获得偏移y的结构A,就像offsetof(A, y)用C?
y
A
offsetof(A, y)
谢谢 :)
memory struct offset swift
memory ×1
offset ×1
struct ×1
swift ×1