public ByteArrayInputStream(sbyte[] buf, int offset, int length)
 {
     this.buf   = buf;
     this.pos   = offset;
     this.count = JMath.min(offset + length, buf.Length);
     this._mark = offset;
 }
Ejemplo n.º 2
0
        public int getRecord(int recordId, sbyte[] buffer, int offset)
        {
            sbyte[] numArray1 = this.m_data[recordId - 1];
            int     length    = JMath.min(buffer.Length - offset, numArray1.Length);

            sbyte[] numArray2 = new sbyte[buffer.Length - offset];
            Array.Copy((Array)buffer, offset, (Array)numArray2, 0, numArray2.Length);
            midp.JSystem.arraycopy((Array)numArray1, 0, (Array)numArray2, 0, length, 1);
            return(length);
        }