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;
 }
Example #2
0
 internal void setClip(int x, int y, int w, int h)
 {
     this.clip = new Rectangle(x, y, w, h);
     x         = JMath.max(0, x);
     y         = JMath.max(0, y);
     w         = x + w > 320 ? 320 - x : w;
     h         = y + h > 533 ? 533 - y : h;
     JavaLib.GraphicsDevice.ScissorRectangle = new Rectangle(x, y, w, h);
 }
Example #3
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);
        }
Example #4
0
 internal void fillArc(
     int posX,
     int posY,
     int width,
     int height,
     int angleStart,
     int angleEnd)
 {
     this.drawTimer(posX, posY, JMath.abs(angleEnd - angleStart));
 }