⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 integer1.cs

📁 详细说明:用C#编写的的中国联通Sgip协议
💻 CS
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Integer1.java
using System;
namespace com.sms.sgip.data
{
	
	// Referenced classes of package com.sms.sgip.data:
	//            SgipException
	
	public class Integer1
	{
		virtual public int MaxLength
		{
			set
			{
				if (value != 1)
					throw new SgipException("Invalid max length for Integer1.");
				else
					return ;
			}
			
		}
		virtual public int Value
		{
			set
			{
				m_i = (short) value;
			}
			
		}
		
		internal int m_i;
		
		public Integer1()
		{
			m_i = 0;
		}
		
		public Integer1(int i)
		{
			m_i = i;
		}
		
		public virtual int length()
		{
			return 1;
		}
		
		public virtual int maxLength()
		{
			return 1;
		}
		
		//UPGRADE_TODO: Class“java.io.DataInputStream”被转换为具有不同行为的 'System.IO.BinaryReader'。 "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'"
		public virtual int read(System.IO.BinaryReader is_Renamed)
		{
			return read(is_Renamed, 0x7fffffff);
		}
		
		//UPGRADE_TODO: Class“java.io.DataInputStream”被转换为具有不同行为的 'System.IO.BinaryReader'。 "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'"
		public virtual int read(System.IO.BinaryReader is_Renamed, int iLeft)
		{
			if (iLeft < 1)
			{
				throw new SgipException("Integer1::read() - Not enought bytes in stream to read.");
			}
			else
			{
				m_i = is_Renamed.ReadByte();
				return 1;
			}
		}
		
		//UPGRADE_TODO: Class“java.io.DataOutputStream”被转换为具有不同行为的 'System.IO.BinaryWriter'。 "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
		public virtual int write(System.IO.BinaryWriter os)
		{
			os.Write((System.Byte) m_i);
			return 1;
		}
		
		public virtual int intValue()
		{
			return m_i;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -