public static global::System.Object copy(global::java.nio.ShortArrayBuffer n1, int n2){
//XMLVM_BEGIN_WRAPPER[java.nio.ReadOnlyShortArrayBuffer: java.nio.ReadOnlyShortArrayBuffer copy(java.nio.ShortArrayBuffer, int)]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    _r4_o = n1;
    _r5.i = n2;
    _r0_o = new global::java.nio.ReadOnlyShortArrayBuffer();
    _r1.i = ((global::java.nio.ShortArrayBuffer) _r4_o).capacity();
    _r2_o = ((global::java.nio.ShortArrayBuffer) _r4_o)._fbackingArray;
    _r3.i = ((global::java.nio.ShortArrayBuffer) _r4_o)._foffset;
    ((global::java.nio.ReadOnlyShortArrayBuffer) _r0_o).@this((int) _r1.i, (global::org.xmlvm._nArrayAdapter<short>) _r2_o, (int) _r3.i);
    _r1.i = ((global::java.nio.ShortArrayBuffer) _r4_o).limit();
    ((global::java.nio.ReadOnlyShortArrayBuffer) _r0_o)._flimit = _r1.i;
    _r1.i = ((global::java.nio.ShortArrayBuffer) _r4_o).position();
    ((global::java.nio.ReadOnlyShortArrayBuffer) _r0_o)._fposition = _r1.i;
    ((global::java.nio.ReadOnlyShortArrayBuffer) _r0_o)._fmark = _r5.i;
    return (global::java.nio.ReadOnlyShortArrayBuffer) _r0_o;
//XMLVM_END_WRAPPER[java.nio.ReadOnlyShortArrayBuffer: java.nio.ReadOnlyShortArrayBuffer copy(java.nio.ShortArrayBuffer, int)]
}
public override global::System.Object slice(){
//XMLVM_BEGIN_WRAPPER[java.nio.ReadOnlyShortArrayBuffer: java.nio.ShortBuffer slice()]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r5_o = null;
    _r5_o = this;
    _r0_o = new global::java.nio.ReadOnlyShortArrayBuffer();
    _r1.i = ((global::java.nio.ReadOnlyShortArrayBuffer) _r5_o).remaining();
    _r2_o = ((global::java.nio.ReadOnlyShortArrayBuffer) _r5_o)._fbackingArray;
    _r3.i = ((global::java.nio.ReadOnlyShortArrayBuffer) _r5_o)._foffset;
    _r4.i = ((global::java.nio.ReadOnlyShortArrayBuffer) _r5_o)._fposition;
    _r3.i = _r3.i + _r4.i;
    ((global::java.nio.ReadOnlyShortArrayBuffer) _r0_o).@this((int) _r1.i, (global::org.xmlvm._nArrayAdapter<short>) _r2_o, (int) _r3.i);
    return (global::java.nio.ShortBuffer) _r0_o;
//XMLVM_END_WRAPPER[java.nio.ReadOnlyShortArrayBuffer: java.nio.ShortBuffer slice()]
}