Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliessolved.tooltip
Replied In
How to convert the data to IOSBytesArray
Hi OOPERwe have java library and we have converted java to Objective c , in java they declares the Bytes[] , but in Objective c they declares as IOSBYTESARRAy, we want pass Nsdata to IOSBYTESARRAYclassName.h- (IOSLongArray *)sendDataWithByteArray:(IOSByteArray *)buf;className.m- (IOSLongArray *)sendDataWithByteArray:(IOSByteArray *)buf { NSLog(@"Print the buf iosbytes array:%@ ", buf); IOSObjectArray *tmp = [IOSObjectArray arrayWithObjects:(id[]){ buf } count:1 type:IOSClass_byteArray(1)]; IOSObjectArray *ret = [self sendDataWithByteArray2:tmp withLongArray:nil withBooleanArray:nil withLong:-1 withLongArray:nil]; if (ret != nil) return IOSObjectArray_Get(ret, 0); return nil;}in swift we are return className.sendData( ....... ) // we have pass IOSBYtesArray