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

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

?? eeprom.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 EEProm class can access data in the EEPROM memory loacted on
 * the target device. <br>
 * Note: Native code routines do not provide any particular erase/write procedures as this
 * really depends on the memory chips used. Software developer must modify appropriate routines
 * in the native code to implement correct programming algorithm.
 * <p>
 *
 * In order to use this class in your application follow the following steps:<br>
 *    1. Locate the EEProm.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.
 *    3. Implement EEProm programming algorithm specific to EEPROM type used.
 */
public class EEProm extends MemoryRegion
{
    /**
     * Creates a new EEProm 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 EEProm(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 EEProm 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 EEProm 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);

    /*
     * 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一区二区三区免费野_久草精品视频
国产精品一线二线三线精华| 国产精品视频看| 99久久精品国产毛片| 国产一区欧美日韩| 久久电影网站中文字幕 | 91黄色激情网站| 91丨九色丨蝌蚪富婆spa| 成av人片一区二区| 一本色道**综合亚洲精品蜜桃冫| 91美女片黄在线| 欧美日韩色综合| 欧美一级欧美一级在线播放| 欧美精品一区二区三区很污很色的| 久久综合资源网| 中文字幕中文字幕中文字幕亚洲无线| 国产精品妹子av| 亚洲综合精品久久| 精品伊人久久久久7777人| 国产精品2024| 91免费精品国自产拍在线不卡| 欧洲亚洲精品在线| 日韩久久久久久| 国产精品久久三| 亚洲国产va精品久久久不卡综合| 午夜久久久影院| 视频一区二区三区中文字幕| 国产乱色国产精品免费视频| 色综合天天天天做夜夜夜夜做| 欧美撒尿777hd撒尿| 精品国内片67194| 亚洲人成网站影音先锋播放| 日本午夜一区二区| 国产不卡视频一区二区三区| 在线观看日韩高清av| 精品成a人在线观看| 亚洲精品久久嫩草网站秘色| 韩国三级电影一区二区| 94色蜜桃网一区二区三区| 538prom精品视频线放| 国产精品久久毛片av大全日韩| 日日噜噜夜夜狠狠视频欧美人| 国产91精品精华液一区二区三区| 777精品伊人久久久久大香线蕉| 国产欧美一区二区三区在线看蜜臀 | 一区二区中文视频| 亚洲成年人影院| 成人av电影在线| 精品国内二区三区| 亚洲第一主播视频| 一本高清dvd不卡在线观看| 日韩欧美成人一区| 亚洲国产aⅴ天堂久久| 不卡视频一二三四| 久久久久久免费| 久久av中文字幕片| 欧美久久一二区| 亚洲人妖av一区二区| 国产资源在线一区| 欧美电影免费观看高清完整版在线观看 | 欧美日韩一级二级三级| 久久九九99视频| 久久国产生活片100| 欧美丰满嫩嫩电影| 亚洲愉拍自拍另类高清精品| 色又黄又爽网站www久久| 国产精品狼人久久影院观看方式| 黄网站免费久久| 精品免费一区二区三区| 日韩av中文在线观看| 欧美另类一区二区三区| 亚洲一区二区三区四区中文字幕| 色综合天天综合网天天狠天天| 国产精品福利一区| 99国产精品国产精品久久| 最新高清无码专区| av一区二区三区黑人| 中文在线资源观看网站视频免费不卡| 国产一区欧美一区| 中文一区在线播放| 99精品国产99久久久久久白柏| 亚洲欧美在线另类| av中文字幕一区| 亚洲免费在线观看视频| 欧美三级电影在线看| 日韩精品福利网| 欧美成人一区二区三区片免费| www.综合网.com| 国产精品蜜臀在线观看| 一本色道亚洲精品aⅴ| 亚洲夂夂婷婷色拍ww47| 欧美人与禽zozo性伦| 久久国产精品一区二区| 欧美激情综合五月色丁香| 9人人澡人人爽人人精品| 中文字幕中文字幕一区二区 | 日本不卡高清视频| 欧美精品一区二区三区蜜臀| 成人黄页在线观看| 亚洲激情成人在线| 精品国产三级电影在线观看| 成人午夜视频免费看| 亚洲国产另类精品专区| 欧美成人a在线| 91蝌蚪国产九色| 欧美a一区二区| 最新日韩在线视频| 日韩一区二区三区四区| 成人亚洲精品久久久久软件| 亚洲中国最大av网站| 久久在线观看免费| 欧美亚洲综合久久| 国产精一区二区三区| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲欧美在线另类| 日韩欧美不卡一区| 色8久久人人97超碰香蕉987| 久久激情五月激情| 午夜精品久久久久久久久久久 | 久久99国产精品久久99果冻传媒| 国产精品狼人久久影院观看方式| 欧美精选午夜久久久乱码6080| 丁香婷婷综合五月| 蜜桃视频在线观看一区二区| 亚洲日本中文字幕区| 国产午夜精品一区二区三区嫩草| 精品视频一区二区三区免费| 国产一区二区电影| 日本va欧美va瓶| 亚洲精品国产第一综合99久久 | 国产一区欧美一区| 亚洲成av人片www| 国产精品久久精品日日| 久久夜色精品一区| 欧美日韩国产在线观看| 91社区在线播放| 国产成a人无v码亚洲福利| 激情五月婷婷综合网| 五月天亚洲婷婷| 亚洲大片在线观看| 一区二区三区免费网站| 欧美国产亚洲另类动漫| 国产欧美一区二区精品久导航| 日韩视频免费观看高清完整版| 欧美日韩精品一区二区三区四区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产视频一区二区在线| 日韩欧美国产精品| 欧美一区二区播放| 国产精品久久精品日日| 国产精品网站导航| 中文字幕一区二区三区在线播放 | 本田岬高潮一区二区三区| 高清国产一区二区| av一二三不卡影片| 91在线精品秘密一区二区| 91免费小视频| 欧美唯美清纯偷拍| 欧美日韩国产高清一区| 欧美一区二区视频观看视频| 日韩欧美一区二区视频| 欧美精品一区二区三区在线播放| 久久久精品综合| 中文一区二区完整视频在线观看| 中文av字幕一区| 亚洲品质自拍视频| 中文av一区二区| 亚洲自拍偷拍图区| 免费在线一区观看| 成人午夜激情片| 欧洲av一区二区嗯嗯嗯啊| 欧美乱妇23p| 国产午夜精品久久久久久久 | 欧美群妇大交群中文字幕| 欧美日韩国产系列| 精品国精品国产| 亚洲国产电影在线观看| 亚洲午夜精品17c| 精品一区二区三区欧美| 成a人片国产精品| 欧美丰满一区二区免费视频 | 伊人一区二区三区| 天堂在线亚洲视频| 国产69精品久久久久777| 一本大道久久a久久综合| 69堂亚洲精品首页| 亚洲国产成人自拍| 日产精品久久久久久久性色| 成人听书哪个软件好| 欧美情侣在线播放| 一区视频在线播放| 另类小说色综合网站| 日本高清不卡aⅴ免费网站| 欧美不卡在线视频| 亚洲一区在线观看免费| 国产一区二区在线看| 91极品美女在线| 久久精品欧美一区二区三区麻豆| 亚洲福利视频一区二区| 成人av中文字幕| xnxx国产精品|