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

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

?? buffer.java

?? linux下編程用 編譯軟件
?? JAVA
字號:
/* Buffer.java --    Copyright (C) 2002, 2003, 2004  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.nio;import gnu.classpath.Pointer;/** * @since 1.4 */public abstract class Buffer{  int cap = 0;  int limit = 0;  int pos = 0;  int mark = -1;  Pointer address;  /**   * Creates a new Buffer.   *   * Should be package private.   */  Buffer (int capacity, int limit, int position, int mark)  {    if (capacity < 0)      throw new IllegalArgumentException ();        cap = capacity;    limit (limit);    position (position);        if (mark >= 0)    {      if (mark > pos)        throw new IllegalArgumentException ();            this.mark = mark;    }  }    /**   * Retrieves the capacity of the buffer.   *   * @return the capacity of the buffer   */  public final int capacity ()  {    return cap;  }  /**   * Clears the buffer.   *   * @return this buffer   */  public final Buffer clear ()  {    limit = cap;    pos = 0;    mark = -1;    return this;  }      /**   * Flips the buffer.   *   * @return this buffer   */  public final Buffer flip ()  {    limit = pos;    pos = 0;    mark = -1;    return this;  }      /**   * Tells whether the buffer has remaining data to read or not.   *   * @return true if the buffer contains remaining data to read,   * false otherwise   */  public final boolean hasRemaining ()  {    return remaining() > 0;  }  /**   * Tells whether this buffer is read only or not.   *   * @return true if the buffer is read only, false otherwise   */  public abstract boolean isReadOnly ();  /**   * Retrieves the current limit of the buffer.   *   * @return the limit of the buffer   */  public final int limit ()  {    return limit;  }  /**   * Sets this buffer's limit.   *    * @param newLimit The new limit value; must be non-negative and no larger   * than this buffer's capacity.   *   * @return this buffer   *   * @exception IllegalArgumentException If the preconditions on newLimit   * do not hold.   */  public final Buffer limit (int newLimit)  {    if ((newLimit < 0) || (newLimit > cap))      throw new IllegalArgumentException ();    if (newLimit < mark)        mark = -1;    if (pos > newLimit)        pos = newLimit;    limit = newLimit;    return this;  }  /**   * Sets this buffer's mark at its position.   *   * @return this buffer   */  public final Buffer mark ()  {    mark = pos;    return this;  }  /**   * Retrieves the current position of this buffer.   *   * @return the current position of this buffer   */  public final int position ()  {    return pos;  }      /**   * Sets this buffer's position. If the mark is defined and larger than the   * new position then it is discarded.   *    * @param newPosition The new position value; must be non-negative and no   * larger than the current limit.   *   * @return this buffer   *   * @exception IllegalArgumentException If the preconditions on newPosition   * do not hold   */  public final Buffer position (int newPosition)  {    if ((newPosition < 0) || (newPosition > limit))      throw new IllegalArgumentException ();    if (newPosition <= mark)        mark = -1;    pos = newPosition;    return this;  }  /**   * Returns the number of elements between the current position and the limit.   *   * @return the number of remaining elements   */  public final int remaining()  {    return limit - pos;  }  /**   * Resets this buffer's position to the previously-marked position.   *   * @return this buffer   *   * @exception InvalidMarkException If the mark has not been set.   */  public final Buffer reset()  {    if (mark == -1)      throw new InvalidMarkException ();    pos = mark;    return this;  }  /**   * Rewinds this buffer. The position is set to zero and the mark   * is discarded.   *   * @return this buffer   */  public final Buffer rewind()  {    pos = 0;    mark = -1;    return this;  }  /**   * Checks for underflow. This method is used internally to check   * whether a buffer has enough elements left to satisfy a read    * request.   *   * @exception BufferUnderflowException If there are no remaining   * elements in this buffer.   */  final void checkForUnderflow()  {    if (!hasRemaining())      throw new BufferUnderflowException();  }  /**   * Checks for underflow. This method is used internally to check   * whether a buffer has enough elements left to satisfy a read    * request for a given number of elements.   *   * @param length The length of a sequence of elements.   *   * @exception BufferUnderflowException If there are not enough    * remaining elements in this buffer.   */  final void checkForUnderflow(int length)  {    if (remaining() < length)      throw new BufferUnderflowException();  }  /**   * Checks for overflow. This method is used internally to check   * whether a buffer has enough space left to satisfy a write    * request.   *   * @exception BufferOverflowException If there is no remaining   * space in this buffer.   */  final void checkForOverflow()  {    if (!hasRemaining())      throw new BufferOverflowException();  }  /**   * Checks for overflow. This method is used internally to check   * whether a buffer has enough space left to satisfy a write    * request for a given number of elements.   *   * @param length The length of a sequence of elements.   *   * @exception BufferUnderflowException If there is not enough    * remaining space in this buffer.   */  final void checkForOverflow(int length)  {    if (remaining() < length)      throw new BufferOverflowException();  }  /**   * Checks if index is negative or not smaller than the buffer's    * limit. This method is used internally to check whether   * an indexed request can be fulfilled.   *   * @param index The requested position in the buffer.   *   * @exception IndexOutOfBoundsException If index is negative or not smaller   * than the buffer's limit.   */  final void checkIndex(int index)  {    if (index < 0        || index >= limit ())      throw new IndexOutOfBoundsException ();  }  /**   * Checks if buffer is read-only. This method is used internally to   * check if elements can be put into a buffer.   *   * @exception ReadOnlyBufferException If this buffer is read-only.   */  final void checkIfReadOnly()   {    if (isReadOnly())      throw new ReadOnlyBufferException ();  }  /**   * Checks whether an array is large enough to hold the given number of   * elements at the given offset. This method is used internally to   * check if an array is big enough.   *   * @param arraylength The length of the array.   * @param offset The offset within the array of the first byte to be read;   * must be non-negative and no larger than arraylength.   * @param length The number of bytes to be read from the given array;   * must be non-negative and no larger than arraylength - offset.   *   * @exception IndexOutOfBoundsException If the preconditions on the offset   * and length parameters do not hold   */  static final void checkArraySize(int arraylength, int offset, int length)  {    if ((offset < 0) ||        (length < 0) ||        (arraylength < length + offset))      throw new IndexOutOfBoundsException ();  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色吊一区二区三区| 亚洲另类在线视频| 亚洲欧美一区二区三区久本道91 | 欧美一区二区视频免费观看| 国产清纯在线一区二区www| 午夜欧美2019年伦理| 成人性生交大片免费看在线播放| 欧美三级韩国三级日本三斤| 国产精品网站导航| 国模一区二区三区白浆| 欧美精品自拍偷拍动漫精品| 亚洲色图在线视频| 成人免费看视频| 久久久欧美精品sm网站 | 亚洲精品视频在线观看免费| 国产一区免费电影| 欧美一区二区三区婷婷月色| 亚洲猫色日本管| 成人午夜av电影| 国产色91在线| 国产在线不卡一区| 精品国产乱码久久久久久1区2区| 午夜成人免费电影| 欧美日韩中文国产| 一区二区三区在线观看网站| 99精品桃花视频在线观看| www一区二区| 麻豆成人91精品二区三区| 欧美精品国产精品| 日韩在线卡一卡二| 欧美日韩视频在线一区二区 | 国产女人aaa级久久久级| 久久成人av少妇免费| 日韩视频一区二区三区| 日韩和欧美的一区| 欧美日韩的一区二区| 亚洲国产一区二区三区| 欧美在线免费观看亚洲| 伊人色综合久久天天人手人婷| 色偷偷久久人人79超碰人人澡| 亚洲四区在线观看| 在线观看欧美日本| 亚洲专区一二三| 欧美日韩一区小说| 青青草91视频| 久久免费精品国产久精品久久久久| 国产一区二区美女| 亚洲欧洲韩国日本视频| 色婷婷av一区二区| 视频一区二区欧美| 2014亚洲片线观看视频免费| 国产成人亚洲综合a∨猫咪| 国产精品久久久久精k8| 欧洲精品视频在线观看| 肉丝袜脚交视频一区二区| 欧美mv日韩mv亚洲| 成人在线综合网| 亚洲精品写真福利| 91精品久久久久久蜜臀| 国产乱码精品一区二区三区av| 中文子幕无线码一区tr| 欧美性受xxxx| 国产一区二区不卡老阿姨| 国产精品国产三级国产aⅴ无密码| 在线视频国内自拍亚洲视频| 日韩成人免费在线| 国产婷婷色一区二区三区| 91在线视频播放地址| 日韩精品一二三四| 国产精品理论在线观看| 3atv一区二区三区| 成人app下载| 美女网站视频久久| 日韩一区在线看| 日韩欧美国产麻豆| 色爱区综合激月婷婷| 国产在线精品视频| 亚洲国产精品麻豆| 国产日韩精品一区二区三区在线| 日本大香伊一区二区三区| 久久99这里只有精品| 亚洲三级电影网站| 亚洲精品在线免费观看视频| 在线观看亚洲a| 成人黄色片在线观看| 免费在线视频一区| 亚洲精品v日韩精品| 久久久美女艺术照精彩视频福利播放| 在线观看免费视频综合| 国产宾馆实践打屁股91| 美美哒免费高清在线观看视频一区二区 | 亚洲国产精品精华液2区45| 欧美视频在线观看一区| 国产成人亚洲综合a∨猫咪| 免费欧美日韩国产三级电影| 亚洲精品美腿丝袜| 国产精品国产馆在线真实露脸 | 国产成人夜色高潮福利影视| 日韩在线播放一区二区| 亚洲免费av高清| 久久精品网站免费观看| 欧美不卡一区二区三区四区| 在线播放欧美女士性生活| 91久久人澡人人添人人爽欧美| 国产成人av资源| 国产一区免费电影| 国产一区二区三区四| 老色鬼精品视频在线观看播放| 首页亚洲欧美制服丝腿| 日韩国产在线观看一区| 性做久久久久久| 亚洲一区二区欧美| 亚洲福利视频一区二区| 亚洲成人福利片| 亚洲国产成人va在线观看天堂| 一区二区三区欧美日| 一区二区三区久久| 亚洲综合偷拍欧美一区色| 亚洲综合色噜噜狠狠| 一区二区三区欧美亚洲| 亚洲一区二区美女| 日韩一区欧美二区| 美女网站色91| 国产精品自拍毛片| 成人午夜av影视| 色综合久久99| 欧美少妇一区二区| 欧美一级黄色片| 久久精品一区二区三区四区| 久久久91精品国产一区二区精品| 国产亚洲人成网站| 中文字幕亚洲一区二区va在线| 亚洲视频免费看| 日日噜噜夜夜狠狠视频欧美人| 捆绑调教美女网站视频一区| 国产一区二区毛片| 99精品久久只有精品| 欧美无砖专区一中文字| 日韩欧美国产精品| 国产精品色在线| 亚洲一区二区精品视频| 久久97超碰国产精品超碰| 国产a精品视频| 色婷婷精品久久二区二区蜜臀av | 国产农村妇女精品| 夜夜夜精品看看| 久久精品国产秦先生| 成人免费高清在线| 欧美精品一二三| 国产女人18水真多18精品一级做 | 国产精品久久久久久福利一牛影视 | 日韩在线一二三区| 国产精品99久久久久久久vr| 日本乱码高清不卡字幕| 精品日韩在线观看| 亚洲另类中文字| 韩国成人精品a∨在线观看| 99久久99久久综合| 日韩精品资源二区在线| 亚洲色图丝袜美腿| 精品影视av免费| 在线观看三级视频欧美| 久久综合丝袜日本网| 亚洲尤物视频在线| 高清不卡在线观看| 日韩一级免费一区| 一区二区三区久久| 懂色av一区二区三区免费观看| 欧美日韩国产bt| 国产精品高潮久久久久无| 美女一区二区视频| 欧美日韩一二区| 国产精品成人午夜| 国产乱码一区二区三区| 在线播放欧美女士性生活| 国产精品国产三级国产| 国产一区二区三区四区五区美女 | 在线观看视频欧美| 国产精品水嫩水嫩| 极品少妇xxxx精品少妇| 宅男噜噜噜66一区二区66| 亚洲蜜臀av乱码久久精品蜜桃| 国产精品91一区二区| 欧美一级在线免费| 午夜久久久久久久久| 色女孩综合影院| 国产精品伦一区二区三级视频| 麻豆精品国产传媒mv男同| 欧美午夜不卡在线观看免费| 日韩毛片在线免费观看| 成人99免费视频| 中文字幕欧美区| 岛国av在线一区| 国产亚洲精品精华液| 国产自产2019最新不卡| 亚洲精品一区二区三区蜜桃下载| 午夜伊人狠狠久久| 3751色影院一区二区三区| 日韩国产在线一| 日韩一区二区免费在线观看|