/// <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); } }
/// <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]); } } }
/// <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); }
/// <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]); } } } } }