Lines Matching refs:buf
187 byte[] buf = new byte[INITIAL_BUFFER_SIZE];
197 /** For every constant pool entry, an index into buf where the
338 return (char)(((buf[bp++] & 0xFF) << 8) + (buf[bp++] & 0xFF));
344 return buf[bp++];
351 ((buf[bp++] & 0xFF) << 24) +
352 ((buf[bp++] & 0xFF) << 16) +
353 ((buf[bp++] & 0xFF) << 8) +
354 (buf[bp++] & 0xFF);
357 /** Extract a character at position bp from buf.
361 (char)(((buf[bp] & 0xFF) << 8) + (buf[bp+1] & 0xFF));
364 /** Extract an integer at position bp from buf.
368 ((buf[bp] & 0xFF) << 24) +
369 ((buf[bp+1] & 0xFF) << 16) +
370 ((buf[bp+2] & 0xFF) << 8) +
371 (buf[bp+3] & 0xFF);
375 /** Extract a long integer at position bp from buf.
379 new DataInputStream(new ByteArrayInputStream(buf, bp, 8));
387 /** Extract a float at position bp from buf.
391 new DataInputStream(new ByteArrayInputStream(buf, bp, 4));
399 /** Extract a double at position bp from buf.
403 new DataInputStream(new ByteArrayInputStream(buf, bp, 8));
424 byte tag = buf[bp++];
470 byte tag = buf[index];
473 poolObj[i] = names.fromUtf(buf, index + 3, getChar(index + 1));
533 return sigToType(buf, index + 3, getChar(index + 1));
543 Assert.check(buf[start] == '[' || buf[start + len - 1] != ';');
545 // simplified to (buf[start] == '[')
546 return (buf[start] == '[' || buf[start + len - 1] == ';')
547 ? (Object)sigToType(buf, start, len)
548 : (Object)enterClass(names.fromUtf(internalize(buf, start,
556 return sigToTypeParams(buf, index + 3, getChar(index + 1));
1336 int numParameters = buf[bp++] & 0xFF;
1359 if (buf[poolIdx[i]] == CONSTANT_Class)
1367 if (buf[index + length + 2] != ';')
1386 char c = (char) buf[bp++];
1470 StringBuilder buf = new StringBuilder();
1471 buf.append("@");
1472 buf.append(type.tsym.getQualifiedName());
1473 buf.append("/*proxy*/{");
1478 if (!first) buf.append(",");
1480 buf.append(value.fst);
1481 buf.append("=");
1482 buf.append(value.snd);
1484 buf.append("}");
1485 return buf.toString();
1507 ListBuffer<Attribute.Compound> buf =
1510 buf.append(deproxyCompound(l.head));
1512 return buf.toList();
1516 ListBuffer<Pair<Symbol.MethodSymbol,Attribute>> buf =
1522 buf.append(new Pair<Symbol.MethodSymbol,Attribute>
1525 return new Attribute.Compound(a.type, buf.toList());
2207 buf = readInputStream(buf, classfile.openInputStream());
2252 private static byte[] readInputStream(byte[] buf, InputStream s) throws IOException {
2254 buf = ensureCapacity(buf, s.available());
2255 int r = s.read(buf);
2259 buf = ensureCapacity(buf, bp);
2260 r = s.read(buf, bp, buf.length - bp);
2262 return buf;
2278 * will infinitely loop as buf.length - bp == 0.
2280 private static byte[] ensureCapacity(byte[] buf, int needed) {
2281 if (buf.length <= needed) {
2282 byte[] old = buf;
2283 buf = new byte[Integer.highestOneBit(needed) << 1];
2284 System.arraycopy(old, 0, buf, 0, old.length);
2286 return buf;