示例#1
0
		/// <exception cref="System.IO.IOException"></exception>
		private void WriteObject(ObjectOutputStream os)
		{
			os.DefaultWriteObject();
			int N = size;
			for (int i = 0; i != N; ++i)
			{
				object obj = GetImpl(i);
				os.WriteObject(obj);
			}
		}
示例#2
0
		/// <exception cref="System.IO.IOException"></exception>
		private void WriteObject(ObjectOutputStream @out)
		{
			@out.DefaultWriteObject();
			int count = keyCount;
			for (int i = 0; count != 0; ++i)
			{
				object key = keys[i];
				if (key != null && key != DELETED)
				{
					--count;
					@out.WriteObject(key);
					@out.WriteInt(values[i]);
				}
			}
		}
示例#3
0
		/// <exception cref="System.IO.IOException"></exception>
		private void WriteObject(ObjectOutputStream stream)
		{
			stream.DefaultWriteObject();
			int maxPrototypeId = 0;
			if (prototypeValues != null)
			{
				maxPrototypeId = prototypeValues.GetMaxId();
			}
			stream.WriteInt(maxPrototypeId);
		}
示例#4
0
		/// <exception cref="System.IO.IOException"></exception>
		private void WriteObject(ObjectOutputStream @out)
		{
			@out.DefaultWriteObject();
			int count = keyCount;
			if (count != 0)
			{
				bool hasIntValues = (ivaluesShift != 0);
				bool hasObjectValues = (values != null);
				@out.WriteBoolean(hasIntValues);
				@out.WriteBoolean(hasObjectValues);
				for (int i = 0; count != 0; ++i)
				{
					int key = keys[i];
					if (key != EMPTY && key != DELETED)
					{
						--count;
						@out.WriteInt(key);
						if (hasIntValues)
						{
							@out.WriteInt(keys[ivaluesShift + i]);
						}
						if (hasObjectValues)
						{
							@out.WriteObject(values[i]);
						}
					}
				}
			}
		}