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

📄 integer4.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:   Integer4.java
using System;
namespace com.sms.sgip.data
{
	
	// Referenced classes of package com.sms.sgip.data:
	//            SgipException
	
	public class Integer4
	{
		virtual public int MaxLength
		{
			set
			{
				if (value != 4)
					throw new SgipException("Invalid max length specified for Integer4.");
				else
					return ;
			}
			
		}
		virtual public int Value
		{
			set
			{
				m_i = value;
			}
			
		}
		
		internal int m_i;
		
		public Integer4()
		{
			m_i = 0;
		}
		
		public Integer4(int i)
		{
			m_i = i;
		}
		
		public virtual int length()
		{
			return 4;
		}
		
		public virtual int maxLength()
		{
			return 4;
		}
		
		//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 < 4)
			{
				throw new SgipException("Not enought bytes in stream to read.");
			}
			else
			{
				m_i = is_Renamed.ReadInt32();
				return 4;
			}
		}
		
		//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(m_i);
			return 4;
		}
		
		public virtual int intValue()
		{
			return m_i;
		}
	}
}

⌨️ 快捷键说明

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