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

Method read

src/jvm/clojure/asm/Attribute.java:121–132  ·  view source on GitHub ↗

Reads a #type attribute. This method must return a new Attribute object, of type #type, corresponding to the 'length' bytes starting at 'offset', in the given ClassReader. @param classReader the class that contains the attribute to be read. @param offset index of the

(
      final ClassReader classReader,
      final int offset,
      final int length,
      final char[] charBuffer,
      final int codeAttributeOffset,
      final Label[] labels)

Source from the content-addressed store, hash-verified

119 * @return a <i>new</i> {@link Attribute} object corresponding to the specified bytes.
120 */
121 protected Attribute read(
122 final ClassReader classReader,
123 final int offset,
124 final int length,
125 final char[] charBuffer,
126 final int codeAttributeOffset,
127 final Label[] labels) {
128 Attribute attribute = new Attribute(type);
129 attribute.content = new byte[length];
130 System.arraycopy(classReader.b, offset, attribute.content, 0, length);
131 return attribute;
132 }
133
134 /**
135 * Returns the byte array form of the content of this attribute. The 6 header bytes

Callers 2

readStreamMethod · 0.45
readAttributeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected