Example usage for org.objectweb.asm ClassReader readUnsignedShort

List of usage examples for org.objectweb.asm ClassReader readUnsignedShort

Introduction

In this page you can find the example usage for org.objectweb.asm ClassReader readUnsignedShort.

Prototype

public int readUnsignedShort(final int offset) 

Source Link

Document

Reads an unsigned short value in this ClassReader .

Usage

From source file:org.javaweb.utils.ClassUtils.java

License:Apache License

/**
 * ?java/*  ww w . j a  v a  2s  .c  o  m*/
 *
 * @param cr
 * @return
 */
public static int getClassVersion(ClassReader cr) {
    return cr.readUnsignedShort(6);
}