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

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

?? asnunsinteger.java

?? 無線網絡管理
?? JAVA
字號:
// NAME//      $RCSfile: AsnUnsInteger.java,v $// DESCRIPTION//      [given below in javadoc format]// DELTA//      $Revision: 3.16 $// CREATED//      $Date: 2006/01/17 17:43:54 $// COPYRIGHT//      Westhawk Ltd// TO DO///* * Copyright (C) 1995, 1996 by West Consulting BV * * Permission to use, copy, modify, and distribute this software * for any purpose and without fee is hereby granted, provided * that the above copyright notices appear in all copies and that * both the copyright notice and this permission notice appear in * supporting documentation. * This software is provided "as is" without express or implied * warranty. * author <a href="mailto:snmp@westhawk.co.uk">Tim Panton</a> * original version by hargrave@dellgate.us.dell.com (Jordan Hargrave) *//* * Copyright (C) 1996 - 2006 by Westhawk Ltd * <a href="www.westhawk.co.uk">www.westhawk.co.uk</a> * * Permission to use, copy, modify, and distribute this software * for any purpose and without fee is hereby granted, provided * that the above copyright notices appear in all copies and that * both the copyright notice and this permission notice appear in * supporting documentation. * This software is provided "as is" without express or implied * warranty. * author <a href="mailto:snmp@westhawk.co.uk">Tim Panton</a> */package uk.co.westhawk.snmp.stack;import java.io.*;import java.util.*;/** * This class represents ASN.1 32-bit unsigned integer. It is used for * TIMETICKS, COUNTER, GAUGE. * * @see SnmpConstants#TIMETICKS * @see SnmpConstants#COUNTER  * @see SnmpConstants#GAUGE * * @author <a href="mailto:snmp@westhawk.co.uk">Tim Panton</a> * @version $Revision: 3.16 $ $Date: 2006/01/17 17:43:54 $ */public class AsnUnsInteger extends AsnObject{    private static final String     version_id =        "@(#)$Id: AsnUnsInteger.java,v 3.16 2006/01/17 17:43:54 birgit Exp $ Copyright Westhawk Ltd";    /**     * The internal value of AsnUnsInteger.     */    protected long value;    /**      * Constructor. The type of the AsnUnsInteger defaults to TIMETICKS.     *     * @param v The value of the AsnUnsInteger     * @see SnmpConstants#TIMETICKS     */    public AsnUnsInteger(long v)     {         this(v, TIMETICKS);    }    /**      * Constructor to create a specific type of AsnUnsInteger.     *     * @param v The value of the AsnUnsInteger     * @param t The type of the AsnUnsInteger     * @see SnmpConstants#TIMETICKS     * @see SnmpConstants#COUNTER      * @see SnmpConstants#GAUGE     */    public AsnUnsInteger(long v, byte t)     {         this.value = v;         this.type = t;    }    /**      * Constructor.     *     * @param in The input stream from which the value should be read     * @param len The length of the AsnUnsInteger     */    public AsnUnsInteger(InputStream in, int len) throws IOException    {        byte data[] = new byte[len];        if (len != in.read(data,0,len))        {            throw new IOException("AsnUnsInteger(): Not enough data");        }        long val = bytesToLong(data);        this.value = val;    }    /**      * Returns the value representation of the AsnUnsInteger.     *     * @return The value of the AsnUnsInteger     */    public long getValue()    {        return value;    }    /**      * Returns the string representation of the AsnUnsInteger.     *     * @return The string of the AsnUnsInteger     */    public String toString()    {        return (String.valueOf(value));    }    /**      * Returns the number of bytes the integer occupies.     */    int size()    {        int  count, empty = 0x00, sign = 0x00;        if (value < 0)        {            empty = 0xFF;            sign  = 0x80;        }        // 32-bit integer.. change to 56 to write 64-bit long        // loop through bytes in value while it is 'empty'        for(count=24; count>0; count-=8)        {            if ( ((value >> count) & 0xFF) != empty) break;        }        // Check sign bit.. make sure negative's MSB bit is 1,        // positives is 0        // (0x00000080 = 0x00 0x80) 0xFFFFFF01 => 0xFF 0x01        // (0x0000007F = 0x7F)      0xFFFFFF80 => 0x80        if (((value >> count) & 0x80) != sign) count += 8;        return (count>>3)+1;    }    /**      * Output integer.     */    void write(OutputStream out, int pos) throws IOException    {        int  count, empty = 0x00, sign = 0x00;        if (value < 0)        {            empty = 0xFF;            sign  = 0x80;        }        // Get count        for(count=24; count>0; count-=8)        {            if ( ((value >> count) & 0xFF) != empty) break;        }        if (((value >> count) & 0x80) != sign) count += 8;        // Build header and write value        AsnBuildHeader(out, type, (count>>3)+1);        if (debug > 10)        {            System.out.println("\tAsnUnsInteger(): value = " + value                + ", pos = " + pos);        }        for(; count>=0; count-=8)        {            out.write((byte)((value >> count) & 0xFF));        }    }    /**     * Changes an array of bytes into a long.     * Thanks to Julien Conan (jconan@protego.net) for improving      * this method.     *     * @param data the array of bytes     * @return the int representation of the array     */    protected long bytesToLong(byte[] data) throws IOException    {        DataInputStream dis = new DataInputStream(              new ByteArrayInputStream(data));        long val = 0;        int size = data.length;        for (int n=0; n<size; n++)        {            val = (val << 8) + dis.readUnsignedByte();        }        return val;    }    /**     * Compares this object to the specified object.  The result is     * <code>true</code> if and only if the argument is not     * <code>null</code> and is an <code>AsnUnsInteger</code> object that     * contains the same <code>long</code> value as this object.     *     * @param   obj   the object to compare with.     * @return  <code>true</code> if the objects are the same;     *          <code>false</code> otherwise.     */    public boolean equals(Object obj)     {        if (obj instanceof AsnUnsInteger)         {            return value == ((AsnUnsInteger)obj).value;        }        return false;    }    /**     * Returns a hash code for this <code>AsnUnsInteger</code>.     *     * @return  a hash code value for this object, equal to the      *          hash of the primitive <code>long</code> value represented      *          by this <code>AsnUnsInteger</code> object.      */    public int hashCode()     {        // nicked from Long.hashCode        return (int)(value ^ (value >>> 32));    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品视频在线观看| 91精品国产欧美一区二区18 | 69精品人人人人| 色视频成人在线观看免| 91福利资源站| 欧美无砖专区一中文字| 3d成人h动漫网站入口| 欧美一区二区在线不卡| 久久伊人中文字幕| 中文字幕成人av| 一级做a爱片久久| 亚洲超碰精品一区二区| 美女视频一区在线观看| 狠狠色综合日日| av在线综合网| 欧美丰满少妇xxxxx高潮对白| 欧美一级高清片| 国产日韩欧美精品电影三级在线| 中文字幕在线播放不卡一区| 中文字幕一区在线观看视频| 午夜精品一区二区三区免费视频 | 日韩视频在线观看一区二区| 久久综合久久综合久久综合| 亚洲色图视频网| 亚洲成人激情自拍| 国产精品1区2区| 欧美日韩一区二区在线观看| 日韩欧美视频一区| 中文字幕制服丝袜一区二区三区| 亚洲成国产人片在线观看| 国产中文一区二区三区| 色香色香欲天天天影视综合网| 日韩三区在线观看| 亚洲免费视频成人| 精品一区二区三区在线视频| 欧洲视频一区二区| 久久久精品影视| 丝袜美腿高跟呻吟高潮一区| 成人黄色a**站在线观看| 欧美一区二区三区色| 亚洲男同1069视频| 国产精品影音先锋| 7777精品伊人久久久大香线蕉最新版 | 欧美精品第1页| 中文字幕日韩精品一区| 国内外成人在线| 欧美丰满高潮xxxx喷水动漫| 日韩美女视频一区二区| 国产尤物一区二区| 欧美另类z0zxhd电影| 中文字幕欧美区| 精品一区二区三区视频在线观看| 在线观看亚洲精品视频| 亚洲色图视频网| 成人免费高清视频在线观看| 精品国产自在久精品国产| 亚洲1区2区3区视频| 91福利在线观看| 中文字幕一区二区三区四区| 成人开心网精品视频| 亚洲精品一区二区三区在线观看| 琪琪久久久久日韩精品| 欧美欧美欧美欧美| 无码av免费一区二区三区试看 | 免费在线成人网| 欧美性xxxxxxxx| 亚洲一级在线观看| 欧美三级蜜桃2在线观看| 亚洲综合久久久久| 欧美性猛片aaaaaaa做受| 亚洲人一二三区| 在线看不卡av| 亚洲成av人片观看| 制服丝袜中文字幕亚洲| 免费人成在线不卡| 日韩免费视频一区| 国产一区91精品张津瑜| 久久久天堂av| www.日韩精品| 亚洲专区一二三| 欧美日韩国产成人在线91| 天堂成人国产精品一区| 91精品国产一区二区三区| 日本成人在线视频网站| 337p粉嫩大胆噜噜噜噜噜91av| 国产专区欧美精品| 国产精品久久久久毛片软件| 91福利区一区二区三区| 天天色天天爱天天射综合| 日韩欧美国产精品| 国产成人精品影视| 亚洲欧美日韩国产成人精品影院 | 丁香亚洲综合激情啪啪综合| 国产三级欧美三级日产三级99| 懂色av中文一区二区三区| 亚洲欧美日韩国产一区二区三区| 欧美日韩成人综合| 国产精品一区二区不卡| 亚洲欧洲色图综合| 欧美一区二区三区思思人| 懂色av一区二区三区蜜臀| 一区二区三区久久| 精品国产不卡一区二区三区| 99精品视频一区二区| 亚洲一区在线观看免费观看电影高清| 欧美一区二区久久久| 波多野结衣在线aⅴ中文字幕不卡| 亚洲黄一区二区三区| 久久夜色精品一区| 欧美午夜精品一区二区三区| 国产精品亚洲人在线观看| 亚洲欧美成aⅴ人在线观看| 日韩午夜激情电影| 在线视频国内自拍亚洲视频| 国产一区二区在线视频| 亚洲成人精品一区二区| 国产精品久久久久久久蜜臀| 欧美一卡2卡3卡4卡| 91网站在线播放| 国产成a人亚洲精| 六月丁香综合在线视频| 亚洲激情av在线| 中文字幕亚洲一区二区av在线| 欧美成人精精品一区二区频| 色88888久久久久久影院按摩 | 亚洲色图另类专区| www欧美成人18+| 制服丝袜av成人在线看| 在线视频中文字幕一区二区| 东方欧美亚洲色图在线| 国产一区二区日韩精品| 裸体歌舞表演一区二区| 日韩精品电影在线| 亚洲韩国一区二区三区| 亚洲精品中文在线观看| 亚洲欧洲日韩在线| 18成人在线观看| 国产欧美日本一区视频| 久久综合国产精品| 欧美一级生活片| 91精品国产综合久久久久久| 欧美日韩一区高清| 欧美日韩美少妇| 欧美日韩不卡一区| 欧美优质美女网站| 欧美日韩国产首页| 欧美精品久久久久久久多人混战| 欧洲精品一区二区三区在线观看| 色先锋久久av资源部| 91日韩精品一区| 91香蕉视频污在线| 日本久久电影网| 91福利视频网站| 欧美精品免费视频| 精品国产污污免费网站入口 | 国内久久精品视频| 国产精品77777| 99精品在线免费| 欧美视频一区二区| 欧美一级专区免费大片| 亚洲精品在线一区二区| 国产精品天干天干在观线| 最新成人av在线| 亚洲永久免费av| 美洲天堂一区二卡三卡四卡视频| 久久97超碰色| 国产成人综合在线| 色综合色综合色综合色综合色综合 | 国产精品久久久久久久岛一牛影视| 国产精品久久久久国产精品日日| 亚洲欧洲av在线| 亚洲成a人片在线不卡一二三区 | 日韩黄色在线观看| 极品尤物av久久免费看| 不卡一区中文字幕| 欧美日韩精品系列| 国产亚洲一区二区在线观看| 一区在线观看免费| 免费观看久久久4p| av男人天堂一区| 日韩一区二区三区av| 中文字幕第一区综合| 婷婷丁香久久五月婷婷| 国产一区二区三区免费播放| 91女人视频在线观看| 欧美一区二区三区色| 国产精品久久久久久久久免费桃花 | 国产精品国产自产拍高清av | 国产在线播精品第三| 欧美视频在线一区| 欧美激情综合在线| 三级不卡在线观看| 99精品一区二区| 久久欧美中文字幕| 亚洲一卡二卡三卡四卡无卡久久| 国产福利电影一区二区三区| 欧美精品色一区二区三区| 国产女主播一区| 日本中文字幕一区二区有限公司| 97久久久精品综合88久久|