Posts

Post marked as solved
3 Replies
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