public static global::System.Object copy(global::java.nio.DirectByteBuffer n1, int n2){
//XMLVM_BEGIN_WRAPPER[java.nio.ReadOnlyDirectByteBuffer: java.nio.ReadOnlyDirectByteBuffer copy(java.nio.DirectByteBuffer, int)]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    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.ReadOnlyDirectByteBuffer();
    _r1_o = ((global::java.nio.DirectByteBuffer) _r4_o)._faddress;
    _r2.i = ((global::java.nio.DirectByteBuffer) _r4_o).capacity();
    _r3.i = ((global::java.nio.DirectByteBuffer) _r4_o)._foffset;
    ((global::java.nio.ReadOnlyDirectByteBuffer) _r0_o).@this((global::org.xmlvm.runtime.RedTypeMarker) _r1_o, (int) _r2.i, (int) _r3.i);
    _r1.i = ((global::java.nio.DirectByteBuffer) _r4_o).limit();
    ((global::java.nio.ReadOnlyDirectByteBuffer) _r0_o)._flimit = _r1.i;
    _r1.i = ((global::java.nio.DirectByteBuffer) _r4_o).position();
    ((global::java.nio.ReadOnlyDirectByteBuffer) _r0_o)._fposition = _r1.i;
    ((global::java.nio.ReadOnlyDirectByteBuffer) _r0_o)._fmark = _r5.i;
    _r1_o = ((global::java.nio.DirectByteBuffer) _r4_o).order();
    ((global::java.nio.ReadOnlyDirectByteBuffer) _r0_o).order((global::java.nio.ByteOrder) _r1_o);
    return (global::java.nio.ReadOnlyDirectByteBuffer) _r0_o;
//XMLVM_END_WRAPPER[java.nio.ReadOnlyDirectByteBuffer: java.nio.ReadOnlyDirectByteBuffer copy(java.nio.DirectByteBuffer, int)]
}
public override global::System.Object slice(){
//XMLVM_BEGIN_WRAPPER[java.nio.ReadOnlyDirectByteBuffer: java.nio.ByteBuffer slice()]
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    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.ReadOnlyDirectByteBuffer();
    _r1_o = ((global::java.nio.ReadOnlyDirectByteBuffer) _r5_o)._faddress;
    _r2.i = ((global::java.nio.ReadOnlyDirectByteBuffer) _r5_o).remaining();
    _r3.i = ((global::java.nio.ReadOnlyDirectByteBuffer) _r5_o)._foffset;
    _r4.i = ((global::java.nio.ReadOnlyDirectByteBuffer) _r5_o)._fposition;
    _r3.i = _r3.i + _r4.i;
    ((global::java.nio.ReadOnlyDirectByteBuffer) _r0_o).@this((global::org.xmlvm.runtime.RedTypeMarker) _r1_o, (int) _r2.i, (int) _r3.i);
    _r1_o = ((global::java.nio.ReadOnlyDirectByteBuffer) _r5_o)._forder;
    ((global::java.nio.ReadOnlyDirectByteBuffer) _r0_o)._forder = (global::org.apache.harmony.luni.platform.Endianness) _r1_o;
    return (global::java.nio.ByteBuffer) _r0_o;
//XMLVM_END_WRAPPER[java.nio.ReadOnlyDirectByteBuffer: java.nio.ByteBuffer slice()]
}