Org.Mozilla.Classfile.ConstantPool.Ensure C# (CSharp) 메소드

Ensure() 개인적인 메소드

private Ensure ( int howMuch ) : void
howMuch int
리턴 void
		internal void Ensure(int howMuch)
		{
			if (itsTop + howMuch > itsPool.Length)
			{
				int newCapacity = itsPool.Length * 2;
				if (itsTop + howMuch > newCapacity)
				{
					newCapacity = itsTop + howMuch;
				}
				byte[] tmp = new byte[newCapacity];
				System.Array.Copy(itsPool, 0, tmp, 0, itsTop);
				itsPool = tmp;
			}
		}