// Disambiguate from org.mozilla.javascript.Node /// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream stream) { stream.DefaultReadObject(); this.dom = DocumentBuilderFactory.NewInstance(); this.dom.SetNamespaceAware(true); this.dom.SetIgnoringComments(false); this.xform = TransformerFactory.NewInstance(); int poolSize = Runtime.GetRuntime().AvailableProcessors() * 2; this.documentBuilderPool = new LinkedBlockingDeque<DocumentBuilder>(poolSize); }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream @is) { @is.DefaultReadObject(); // It reads size int N = size; if (N > FIELDS_STORE_SIZE) { data = new object[N - FIELDS_STORE_SIZE]; } for (int i = 0; i != N; ++i) { object obj = @is.ReadObject(); SetImpl(i, obj); } }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream stream) { stream.DefaultReadObject(); int maxPrototypeId = stream.ReadInt(); if (maxPrototypeId != 0) { ActivatePrototypeMap(maxPrototypeId); } }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream @in) { @in.DefaultReadObject(); if (parmsLength > 0) { Type[] types = member.argTypes; typeTags = new byte[parmsLength]; for (int i = 0; i != parmsLength; ++i) { typeTags[i] = unchecked((byte)GetTypeTag(types[i])); } } if (member.IsMethod()) { MethodInfo method = member.Method(); Type returnType = method.ReturnType; if (returnType == typeof(void)) { hasVoidReturn = true; } else { returnTypeTag = GetTypeTag(returnType); } } }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream @in) { @in.DefaultReadObject(); int writtenKeyCount = keyCount; if (writtenKeyCount != 0) { keyCount = 0; int N = 1 << power; keys = new object[N]; values = new int[2 * N]; for (int i = 0; i != writtenKeyCount; ++i) { object key = @in.ReadObject(); int hash = key.GetHashCode(); int index = InsertNewKey(key, hash); values[index] = @in.ReadInt(); } } }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream @in) { @in.DefaultReadObject(); int writtenKeyCount = keyCount; if (writtenKeyCount != 0) { keyCount = 0; bool hasIntValues = @in.ReadBoolean(); bool hasObjectValues = @in.ReadBoolean(); int N = 1 << power; if (hasIntValues) { keys = new int[2 * N]; ivaluesShift = N; } else { keys = new int[N]; } for (int i = 0; i != N; ++i) { keys[i] = EMPTY; } if (hasObjectValues) { values = new object[N]; } for (int i_1 = 0; i_1 != writtenKeyCount; ++i_1) { int key = @in.ReadInt(); int index = InsertNewKey(key); if (hasIntValues) { int ivalue = @in.ReadInt(); keys[ivaluesShift + index] = ivalue; } if (hasObjectValues) { values[index] = @in.ReadObject(); } } } }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> private void ReadObject(ObjectInputStream @in) { @in.DefaultReadObject(); this.classLoader = Context.GetCurrentContext().GetApplicationClassLoader(); }