在C#中,有固定阵列的守法
array[(int)(index)]
index is long (and has to be long for some reasons).. so I need to cast it to int in order to get access to array element. Is there a way to use pointers or some other combination of actions in unsafe code to prevent this cast cause index can have long value of 1 for example (and never exceeds int value obv).. I feel that maybe unsafe pointers addition could prevent it from happening. I also feel this cast is not for free..and performance is the issue here. (exactly this line) I also think its not possible but I ask just in case im mistaken.
奥基德提供一些细节,像在伊德里克长时期那样做一些必要的逻辑行动。
价值 = 阵列[(int)(preIndex &对面罩);
这些行动是必要的,法典已经相当低。 我只能认为最优化的是,从长期到现在,需要开展双向行动。
增 编