Example #1
0
		/// <summary>
		/// Utility function to copy a String out of a ByteBuffer.
		/// 
		/// This is here because multiple chunk handlers can make use of it,
		/// and there's nowhere better to put it.
		/// </summary>
		internal static string getString(ByteBuffer buf, int len)
		{
			char[] data = new char[len];
			for (int i = 0; i < len; i++)
			{
				data[i] = buf.getChar();
			}
			return new string(data);
		}