public static global::System.Object copy(global::java.nio.HeapByteBuffer n1, int n2){
//XMLVM_BEGIN_WRAPPER[java.nio.ReadWriteHeapByteBuffer: java.nio.ReadWriteHeapByteBuffer copy(java.nio.HeapByteBuffer, 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.ReadWriteHeapByteBuffer();
    _r1_o = ((global::java.nio.HeapByteBuffer) _r4_o)._fbackingArray;
    _r2.i = ((global::java.nio.HeapByteBuffer) _r4_o).capacity();
    _r3.i = ((global::java.nio.HeapByteBuffer) _r4_o)._foffset;
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r1_o, (int) _r2.i, (int) _r3.i);
    _r1.i = ((global::java.nio.HeapByteBuffer) _r4_o).limit();
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o)._flimit = _r1.i;
    _r1.i = ((global::java.nio.HeapByteBuffer) _r4_o).position();
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o)._fposition = _r1.i;
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o)._fmark = _r5.i;
    _r1_o = ((global::java.nio.HeapByteBuffer) _r4_o).order();
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o).order((global::java.nio.ByteOrder) _r1_o);
    return (global::java.nio.ReadWriteHeapByteBuffer) _r0_o;
//XMLVM_END_WRAPPER[java.nio.ReadWriteHeapByteBuffer: java.nio.ReadWriteHeapByteBuffer copy(java.nio.HeapByteBuffer, int)]
}
Ejemplo n.º 2
0
public static global::System.Object newByteBuffer(int n1){
//XMLVM_BEGIN_WRAPPER[java.nio.BufferFactory: java.nio.ByteBuffer newByteBuffer(int)]
    global::org.xmlvm._nElement _r0;
    _r0.i = 0;
    _r0.l = 0;
    _r0.f = 0;
    _r0.d = 0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    _r1.i = 0;
    _r1.l = 0;
    _r1.f = 0;
    _r1.d = 0;
    _r1.i = n1;
    _r0_o = new global::java.nio.ReadWriteHeapByteBuffer();
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o).@this((int) _r1.i);
    return (global::java.nio.ByteBuffer) _r0_o;
//XMLVM_END_WRAPPER[java.nio.BufferFactory: java.nio.ByteBuffer newByteBuffer(int)]
}
Ejemplo n.º 3
0
public static global::System.Object newByteBuffer(global::org.xmlvm._nArrayAdapter<sbyte> n1){
//XMLVM_BEGIN_WRAPPER[java.nio.BufferFactory: java.nio.ByteBuffer newByteBuffer(byte[])]
    global::org.xmlvm._nElement _r0;
    _r0.i = 0;
    _r0.l = 0;
    _r0.f = 0;
    _r0.d = 0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    _r1.i = 0;
    _r1.l = 0;
    _r1.f = 0;
    _r1.d = 0;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r1_o = n1;
    _r0_o = new global::java.nio.ReadWriteHeapByteBuffer();
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r1_o);
    return (global::java.nio.ByteBuffer) _r0_o;
//XMLVM_END_WRAPPER[java.nio.BufferFactory: java.nio.ByteBuffer newByteBuffer(byte[])]
}
Ejemplo n.º 4
0
        public static global::System.Object newByteBuffer(int n1)
        {
//XMLVM_BEGIN_WRAPPER[java.nio.BufferFactory: java.nio.ByteBuffer newByteBuffer(int)]
            global::org.xmlvm._nElement _r0;
            _r0.i = 0;
            _r0.l = 0;
            _r0.f = 0;
            _r0.d = 0;
            global::System.Object       _r0_o = null;
            global::org.xmlvm._nElement _r1;
            _r1.i = 0;
            _r1.l = 0;
            _r1.f = 0;
            _r1.d = 0;
            global::System.Object _r1_o = null;
            global::org.xmlvm._nExceptionAdapter _ex = null;
            _r1.i = n1;
            _r0_o = new global::java.nio.ReadWriteHeapByteBuffer();
            ((global::java.nio.ReadWriteHeapByteBuffer)_r0_o).@this((int)_r1.i);
            return((global::java.nio.ByteBuffer)_r0_o);
//XMLVM_END_WRAPPER[java.nio.BufferFactory: java.nio.ByteBuffer newByteBuffer(int)]
        }
public override global::System.Object slice(){
//XMLVM_BEGIN_WRAPPER[java.nio.ReadWriteHeapByteBuffer: 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.ReadWriteHeapByteBuffer();
    _r1_o = ((global::java.nio.ReadWriteHeapByteBuffer) _r5_o)._fbackingArray;
    _r2.i = ((global::java.nio.ReadWriteHeapByteBuffer) _r5_o).remaining();
    _r3.i = ((global::java.nio.ReadWriteHeapByteBuffer) _r5_o)._foffset;
    _r4.i = ((global::java.nio.ReadWriteHeapByteBuffer) _r5_o)._fposition;
    _r3.i = _r3.i + _r4.i;
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o).@this((global::org.xmlvm._nArrayAdapter<sbyte>) _r1_o, (int) _r2.i, (int) _r3.i);
    _r1_o = ((global::java.nio.ReadWriteHeapByteBuffer) _r5_o)._forder;
    ((global::java.nio.ReadWriteHeapByteBuffer) _r0_o)._forder = (global::org.apache.harmony.luni.platform.Endianness) _r1_o;
    return (global::java.nio.ByteBuffer) _r0_o;
//XMLVM_END_WRAPPER[java.nio.ReadWriteHeapByteBuffer: java.nio.ByteBuffer slice()]
}