예제 #1
0
 /// <summary>
 /// Compiles an ActionScript 3 bytecode file from a stream.
 /// </summary>
 /// <param name="stream">The stream from which to read the ActionScript 3 bytecode file.</param>
 /// <remarks>This method does not dispose <paramref name="stream"/> after the ABC file has been read.</remarks>
 ///
 /// <exception cref="AVM2Exception">Error #10330: This method is called after calling
 /// <see cref="finishCompilation"/>.</exception>
 public void compile(Stream stream) =>
 compile(ABCFile.read(stream, m_compileOptions.parserOptions));
예제 #2
0
 /// <summary>
 /// Compiles an ActionScript 3 bytecode file from a byte array.
 /// </summary>
 /// <param name="data">The byte array containing the ActionScript 3 bytecode file.</param>
 ///
 /// <exception cref="AVM2Exception">Error #10330: This method is called after calling
 /// <see cref="finishCompilation"/>.</exception>
 public void compile(byte[] data) =>
 compile(ABCFile.read(data, m_compileOptions.parserOptions));