62,614
社区成员
发帖
与我相关
我的任务
分享
/**
* Write a byte array into the parcel at the current {@link #dataPosition},
* growing {@link #dataCapacity} if needed.
* @param b Bytes to place into the parcel.
* @param offset Index of first byte to be written.
* @param len Number of bytes to write.
*/
public final void writeByteArray(byte[] b, int offset, int len) {
if (b == null) {
writeInt(-1);
return;
}
Arrays.checkOffsetAndCount(b.length, offset, len);
nativeWriteByteArray(mNativePtr, b, offset, len);
}
public class Demo {
public static void main(String[] args) {
if (args.length == 0) {
System.out.println("no args.");
}
}
}
像楼主的代码层级多,又没有排版,没法看。