Lines Matching defs:length
33 int length = 0;
53 // Get the length and check if it is reasonable.
57 length = pack(buf, 0, 2, false);
58 if (length < 2) {
59 Log.e(TAG, "Invalid length");
62 length -= 2;
65 if (marker == 0xE1 && length >= 6) {
67 length -= 6;
76 is.skip(length);
80 length = 0;
84 if (length > 8) {
86 byte[] jpeg = new byte[length];
87 if (!read(is, jpeg, length)) {
101 if (count < 10 || count > length) {
106 length -= count;
110 while (count-- > 0 && length >= 12) {
130 length -= 12;
138 private static int pack(byte[] bytes, int offset, int length,
142 offset += length - 1;
147 while (length-- > 0) {
154 private static boolean read(InputStream is, byte[] buf, int length) {
156 return is.read(buf, 0, length) == length;