@Implementation(minSdk = LOLLIPOP) protected static int nativeReadInt(long nativePtr) { return NATIVE_PTR_TO_PARCEL.get(nativePtr).readInt(); }
int length = readInt(); if (length == -1) { return null;
@Implementation(minSdk = LOLLIPOP) public static int nativeReadInt(long nativePtr) { return NATIVE_PTR_TO_PARCEL.get(nativePtr).readInt(); }
/** * Reads a byte array from the byte buffer based on the current data position */ public byte[] readByteArray() { int length = readInt(); if (length == -1) { return null; } byte[] array = new byte[length]; for (int i = 0; i < length; i++) { array[i] = readByte(); } return array; }
/** * Reads a byte array from the byte buffer based on the current data position */ public byte[] readByteArray() { int length = readInt(); if (length == -1) { return null; } byte[] array = new byte[length]; for (int i = 0; i < length; i++) { array[i] = readByte(); } return array; }
/** * Reads a byte array from the byte buffer based on the current data position */ public byte[] readByteArray() { int length = readInt(); if (length == -1) { return null; } byte[] array = new byte[length]; for (int i = 0; i < length; i++) { array[i] = readByte(); } return array; }
@Implementation(minSdk = LOLLIPOP) protected static int nativeReadInt(long nativePtr) { return NATIVE_PTR_TO_PARCEL.get(nativePtr).readInt(); }
@Implementation(minSdk = LOLLIPOP) public static int nativeReadInt(long nativePtr) { return NATIVE_PTR_TO_PARCEL.get(nativePtr).readInt(); }
@Implementation @HiddenApi public static int nativeReadInt(long nativePtr) { return NATIVE_PTR_TO_PARCEL.get(nativePtr).readInt(); }
/** * Reads a byte array from the byte buffer based on the current data position */ public byte[] readByteArray() { int length = readInt(); if (length == -1) { return null; } byte[] array = new byte[length]; for (int i = 0; i < length; i++) { array[i] = readByte(); } return array; }
/** * Reads a byte array from the byte buffer based on the current data position */ public boolean readByteArray(byte[] dest, int destLen) { int length = readInt(); if (length >= 0 && length <= dataAvailable() && length == destLen) { for (int i = 0; i < length; i++) { dest[i] = readByte(); } return true; } return false; }