數組長度不確定
EXPORT void getValue(byte ID,byte r[],int size);
public static extern void getValue(byte id, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] r, int size);
數組長度確定
EXPORT void setValue(byte r[8]);
public static extern void setValue([MarshalAs(UnmanagedType.LPArray, SizeConst = 8)] byte[] r);