You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
都有FloatArray,IntArray...,照例子自己实现一个就行了
public class ShortArray extends BaseArray<short[]> implements PrimitiveArray<short[]>{
public ShortArray(short[] value) {
super(value);
}
@Override
public int length() {
return value.length;
}
@Override
public void setData(int start, short[] data) {
System.arraycopy(data, 0, value, start, data.length);
}
@Override
public UnicornPointer _GetArrayCritical(Emulator emulator, Pointer isCopy) {
throw new UnicornException();
}
@Override
public void _ReleaseArrayCritical(Pointer elems, int mode) {
throw new UnicornException();
}
有些方法的参数是Object[]或者是short[]数组,但是框架代码里面只支持String和byte[],请问这种如何添加参数支持,还是说有其他办法转换参数?
![image](https://user-images.githubusercontent.com/19722515/71703845-e2a4e300-2e11-11ea-82b4-13b7bb4bae64.png)
The text was updated successfully, but these errors were encountered: