亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? flash.java

?? 輕量嵌入JVM,可用于掌上設備手機等手持消息設備.
?? JAVA
字號:
/************************************************************************
This file is part of java core libraries for the simpleRTJ virtual machine.

This file is covered by the GNU GPL with the following exception:
  As a special exception, the copyright holders of this library give you permission
  to link this library with independent modules to produce an executable, regardless
  of the license terms of these independent modules, and to copy and distribute the
  resulting executable under terms of your choice, provided that you also meet, for
  each linked independent module, the terms and conditions of the license of that
  module. An independent module is a module which is not derived from or based on
  this library. If you modify this library, you may extend this exception to your
  version of the library, but you are not obligated to do so. If you do not wish
  to do so, delete this exception statement from your version.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY,  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL RTJ COMPUTING BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2000-2002 RTJ Computing Pty. Ltd. All rights reserved.
***********************************************************************/
package javax.memory;

/**
 * The instances of a Flash class can access data in the flash memory loacted on
 * the target device. Native code routines provide erase/write alogorithms that are
 * common to most flash memory chips from AMD and other manufactures. Please verify
 * with the flash memory data sheets if the used algortithm is suitable for your
 * flash memory.
 * <p>
 *
 * In order to use this class in your application follow the following steps:<br>
 *    1. Locate the Flash.c in the source/javax/memory/native directory<br>
 *    2. Copy this file into your project's native code directory and
 *       make it part of the native code building process.
 */
public class Flash extends MemoryRegion
{
    /**
     * Creates a new memory region object.
     *
     * @param start starting address of a new memory region.
     * @param length length of a new memory region.
     * @exception InvalidMemoryRegionException is thrown when the requested region
     *      is invalid, i.e. overlaps with some other memory regions or there is no
     *      physical memory at specified location.
     */
    public Flash(int start, int length) throws InvalidMemoryRegionException
    {
        super(start, length);
    }

    /**
     * Writes a <code>byte</code> into memory at current offset. Method setOffset()
     * should be called prior calling this method to setup the offset pointer.<br>
     * Offset pointer will be modified by 1 if post-increment is enabled or -1 if
     * post-decrement is enabled.
     *
     * @param value  a byte value that will be written into memory. Only lower 8 bits are written.
     * @exception RegionAddressOutOfBoundsException is thrown when trying to access data out of bounds
     *      of this memory region.
     */
    public void writeByte(int value) throws RegionAddressOutOfBoundsException
    {
        if (regStart + memOffs < regStart || regStart + memOffs >= regEnd)
            throw new RegionAddressOutOfBoundsException();

        writeByte0(regStart + memOffs, value);
        if (postIncrement)
            memOffs++;
        else if (postDecrement)
            memOffs--;
    }

    /**
     * Writes a <code>short</code> into memory at current offset. Method setOffset()
     * should be called prior calling this method to setup the offset pointer.<br>
     * Offset pointer will be modified by 2 if post-increment is enabled or -2 if
     * post-decrement is enabled.
     *
     * @param value  a short value that will be written into memory. Only lower 16 bits are written.
     * @exception RegionAddressOutOfBoundsException is thrown when trying to access data out of bounds
     *      of this memory region.
     */
    public void writeShort(int value) throws RegionAddressOutOfBoundsException
    {
        if (regStart + memOffs < regStart || regStart + memOffs >= regEnd)
            throw new RegionAddressOutOfBoundsException();

        writeShort0(regStart + memOffs, value);
        if (postIncrement)
            memOffs += 2;
        if (postDecrement)
            memOffs -= 2;
    }

    /**
     * Writes a <code>int</code> into memory at current offset. Method setOffset()
     * should be called prior calling this method to setup the offset pointer.<br>
     * Offset pointer will be modified by 4 if post-increment is enabled or -4 if
     * post-decrement is enabled.
     *
     * @param value  a integer value (32 bit) that will be written into memory.
     * @exception RegionAddressOutOfBounds is thrown when trying to access data out of bounds
     *      of this memory region.
     */
    public void writeInt(int value) throws RegionAddressOutOfBoundsException
    {
        if (regStart + memOffs < regStart || regStart + memOffs >= regEnd)
            throw new RegionAddressOutOfBoundsException();

        writeInt0(regStart + memOffs, value);
        if (postIncrement)
            memOffs += 4;
        if (postDecrement)
            memOffs -= 4;
    }

    /**
     * Writes <code>byte</code> array to the memory starting at the current offset.
     * Method setOffset() should be called prior calling this method to setup the offset pointer.<br>
     * The offset pointer will be modified by the number of bytes written if post-increment
     * or post-decrement flag is set.
     *
     * @param array a source byte array
     * @param start starting offset in the array
     * @param length number of bytes to write
     * @exception RegionAddressOutOfBoundsException is thrown when trying to access data out of bounds
     *      of this memory region.
     * @exception IndexOutOfBoundsException is thrown when trying to access array data that out of bounds
     *      of the input byte array.
     */
    public void writeBytes(byte[] array, int start, int length)
        throws RegionAddressOutOfBoundsException, IndexOutOfBoundsException
    {
        if (start + length > array.length)
            throw new IndexOutOfBoundsException();
        if (regStart + memOffs < regStart || regStart + memOffs + length >= regEnd)
            throw new RegionAddressOutOfBoundsException();

        writeBytes0(regStart + memOffs, array, start, length);
        if (postIncrement)
            memOffs += length;
        if (postDecrement)
            memOffs -= length;
    }

    /**
     * Verifies if the requested meory area is valid flash memory area.
     *
     * @param start starting address of a new memory region.
     * @param length length of a new memory region.
     * @return true if memory region validity test passes, otherwise false is returned.
     */
    protected boolean regionOk(int start, int length)
    {
        if (!super.regionOk(start, length))
            return false;

        return regionOk0(start, length);
    }

    /**
     * Verifies if the requested area is valid flash memory region.
     * @param start starting address of a new memory region.
     * @param length length of a new memory region.
     * @return true if memory region validity test passes, otherwise false is returned.
     */
    protected static native boolean regionOk0(int start, int length);

    /**
     * Erases the specified sector in the flash memory chip.
     * @param sectorNo number of a sector to erase. If the used flash chip has eight
     *      sectors then acceptable values are 1 to 8.
     * @return true if flash sector was erased successfully, otherwise if the erase failed
     *      or invalid sector number was supplied false is returned.
     */
    public static native boolean eraseSector(int sectorNo);

    /*
     * Native methods that write 8, 16 and 32 bit values into memory.
     */
    protected static native boolean writeByte0(int Address, int Value);
    protected static native boolean writeShort0(int Address, int Value);
    protected static native boolean writeInt0(int Address, int Value);
    protected static native boolean writeBytes0(int Address, byte[] Src, int Start, int length);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本不卡123| 亚洲成av人片一区二区三区| 成人18视频日本| 亚洲成a天堂v人片| 久久综合九色综合97婷婷| 北岛玲一区二区三区四区| 香蕉久久夜色精品国产使用方法 | 91小视频在线免费看| 亚洲小说春色综合另类电影| 欧美一区二区三区视频在线| 成人精品国产一区二区4080| 亚洲国产成人tv| 久久在线免费观看| 在线免费一区三区| 国模冰冰炮一区二区| 亚洲黄色录像片| 久久综合999| 欧美三级韩国三级日本三斤| 狠狠色综合播放一区二区| 亚洲色图欧洲色图婷婷| 精品国产一区二区在线观看| 在线精品亚洲一区二区不卡| 韩国女主播一区| 亚洲小说欧美激情另类| 日本一区二区视频在线| 91精品国产美女浴室洗澡无遮挡| 成人激情文学综合网| 久久99热这里只有精品| 一区二区久久久久久| 久久精品一区四区| 日韩亚洲欧美高清| 欧美无乱码久久久免费午夜一区| 国产精品资源在线| 日韩精品乱码免费| 亚洲激情校园春色| 国产精品久久久久影院亚瑟| 欧美一区二区播放| 欧美影视一区二区三区| 99re66热这里只有精品3直播 | 69堂精品视频| 91捆绑美女网站| 国产成人免费视频网站 | 欧美xingq一区二区| 91免费国产在线观看| 国产精品99久久久久久似苏梦涵| 图片区小说区国产精品视频| 一区二区三区四区在线播放| 国产精品网站在线观看| 久久亚洲影视婷婷| 欧美成人伊人久久综合网| 欧美日韩国产综合视频在线观看| 91在线丨porny丨国产| 成人国产亚洲欧美成人综合网| 经典三级视频一区| 老司机精品视频在线| 午夜不卡在线视频| 亚洲电影在线免费观看| 亚洲狠狠爱一区二区三区| 亚洲精品视频观看| 亚洲码国产岛国毛片在线| 国产精品看片你懂得| 国产精品美女久久久久久久久| 国产欧美精品日韩区二区麻豆天美| 久久网站热最新地址| 久久久99久久| 国产精品久线在线观看| 中文字幕日本乱码精品影院| 成人免费小视频| 亚洲精品老司机| 亚洲成av人综合在线观看| 亚洲成av人片在线| 美女网站视频久久| 国产精选一区二区三区| 成人精品国产一区二区4080| 91色在线porny| 欧美午夜片在线看| 欧美群妇大交群的观看方式| 午夜精品aaa| 日本不卡中文字幕| 精品综合久久久久久8888| 国产揄拍国内精品对白| 成人午夜免费电影| 色一情一乱一乱一91av| 欧美日韩国产小视频| 欧美一区二区三区白人| 337p日本欧洲亚洲大胆色噜噜| 欧美激情一区不卡| 亚洲激情网站免费观看| 欧美96一区二区免费视频| 国产黄色精品网站| 色婷婷精品久久二区二区蜜臀av| 精品污污网站免费看| 欧美成人精精品一区二区频| 欧美国产一区视频在线观看| 亚洲精品免费在线播放| 日本中文一区二区三区| 精品制服美女丁香| 国产一区高清在线| 97精品国产露脸对白| 日韩午夜在线观看视频| 亚洲男人天堂av网| 天天综合日日夜夜精品| 成人午夜电影小说| 欧美xxxx在线观看| 亚洲精选一二三| 东方欧美亚洲色图在线| 日韩精品一区二区三区中文不卡| 亚洲激情五月婷婷| 99久久99久久精品国产片果冻| 欧美成人r级一区二区三区| 亚洲第一成年网| 99久久婷婷国产综合精品| 伦理电影国产精品| 欧美肥妇bbw| 夜色激情一区二区| 99久久精品国产一区| 国产日产欧美精品一区二区三区| 乱一区二区av| 欧美一区二区三区啪啪| 日韩影院精彩在线| 欧美日精品一区视频| 一区二区三区欧美日| 91在线视频官网| 中文字幕亚洲综合久久菠萝蜜| 国产麻豆精品theporn| 久久尤物电影视频在线观看| 久久丁香综合五月国产三级网站| 欧美精品aⅴ在线视频| 天堂精品中文字幕在线| 欧美日韩亚洲综合一区二区三区| 一区二区三区日韩欧美| 日本韩国精品在线| 亚洲黄色av一区| 欧美影院精品一区| 亚洲高清免费一级二级三级| 在线观看av不卡| 亚洲综合男人的天堂| a级精品国产片在线观看| 国产精品免费看片| 91丨porny丨中文| 亚洲一二三四在线观看| 欧美性猛交xxxx乱大交退制版| 亚洲一区视频在线观看视频| 91成人看片片| 亚洲bt欧美bt精品777| 91精品国模一区二区三区| 久久国产精品一区二区| 久久久久久毛片| 99国产精品久久| 亚洲综合在线免费观看| 欧美日韩极品在线观看一区| 日本欧美在线看| 久久―日本道色综合久久| 风间由美中文字幕在线看视频国产欧美| 欧美激情一区不卡| 色视频一区二区| 日韩av不卡一区二区| 久久久久九九视频| 91丨porny丨户外露出| 亚洲1区2区3区4区| 精品久久国产字幕高潮| 国产精品一区二区视频| 亚洲日本电影在线| 7777精品伊人久久久大香线蕉超级流畅| 久久草av在线| 亚洲国产精品ⅴa在线观看| 91久久精品日日躁夜夜躁欧美| 手机精品视频在线观看| 国产亚洲精久久久久久| 日本电影欧美片| 国内精品写真在线观看| 亚洲精品写真福利| 精品国产乱码久久久久久图片| 成人国产亚洲欧美成人综合网| 亚洲午夜av在线| 国产女主播视频一区二区| 欧美色涩在线第一页| 国产一区二区三区在线观看精品 | 国产精品亚洲综合一区在线观看| 成人v精品蜜桃久久一区| 亚洲综合丁香婷婷六月香| 日韩精品最新网址| 一本到高清视频免费精品| 蜜桃视频在线观看一区| 日韩理论在线观看| 欧美mv和日韩mv的网站| 欧美最猛性xxxxx直播| 国产福利不卡视频| 午夜精品福利一区二区蜜股av| 欧美国产日韩a欧美在线观看| 欧美高清性hdvideosex| 99riav久久精品riav| 国产精品一区二区你懂的| 亚洲va韩国va欧美va精品| 日韩美女视频一区二区| 精品91自产拍在线观看一区| 精品视频一区 二区 三区| 成人动漫一区二区| 久久精品国产77777蜜臀| 亚洲另类在线视频|