Example usage for org.objectweb.asm ByteVector putShort

List of usage examples for org.objectweb.asm ByteVector putShort

Introduction

In this page you can find the example usage for org.objectweb.asm ByteVector putShort.

Prototype

public ByteVector putShort(final int shortValue) 

Source Link

Document

Puts a short into this byte vector.

Usage

From source file:com.sun.tdk.jcov.instrument.CharacterRangeTableAttribute.java

License:Open Source License

@Override
protected ByteVector write(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals) {
    ByteVector bv = new ByteVector();
    bv.putShort(length);
    for (CRTEntry entry : entries) {
        entry.put(bv);/*w  ww  .  jav a  2s .c  o m*/
    }
    return bv;
}