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)
| 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 |
no outgoing calls
no test coverage detected