MCPcopy Index your code
hub / github.com/clojure/clojure / readUTF

Method readUTF

src/jvm/clojure/asm/ClassReader.java:3386–3395  ·  view source on GitHub ↗

Reads a CONSTANT_Utf8 constant pool entry in #b. @param constantPoolEntryIndex the index of a CONSTANT_Utf8 entry in the class's constant pool table. @param charBuffer the buffer to be used to read the string. This buffer must be sufficiently large. It is not automatically resized.

(final int constantPoolEntryIndex, final char[] charBuffer)

Source from the content-addressed store, hash-verified

3384 * @return the String corresponding to the specified CONSTANT_Utf8 entry.
3385 */
3386 final String readUTF(final int constantPoolEntryIndex, final char[] charBuffer) {
3387 String value = (String) cpInfoValues[constantPoolEntryIndex];
3388 if (value != null) {
3389 return value;
3390 }
3391 int cpInfoOffset = cpInfoOffsets[constantPoolEntryIndex];
3392 value = readUTF(cpInfoOffset + 2, readUnsignedShort(cpInfoOffset), charBuffer);
3393 cpInfoValues[constantPoolEntryIndex] = value;
3394 return value;
3395 }
3396
3397 /**
3398 * Reads an UTF8 string in {@link #b}.

Callers 4

acceptMethod · 0.95
readMethodMethod · 0.95
readUTF8Method · 0.95
SymbolTableMethod · 0.80

Calls 1

readUnsignedShortMethod · 0.95

Tested by

no test coverage detected