CompilationLoader.ReadBinary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ReadBinary(Stream, QsCompilation) |
Given a stream with the content of a Q# binary file, returns the corresponding compilation as out parameter. |
| ReadBinary(String, QsCompilation) |
Given the path to a Q# binary file, reads the content of that file and returns the corresponding compilation as out parameter. Throws the corresponding exception if the given path does not correspond to a suitable binary file. |
ReadBinary(Stream, QsCompilation)
Given a stream with the content of a Q# binary file, returns the corresponding compilation as out parameter.
public static bool ReadBinary (System.IO.Stream stream, out Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation? syntaxTree);
static member ReadBinary : System.IO.Stream * QsCompilation -> bool
Public Shared Function ReadBinary (stream As Stream, ByRef syntaxTree As QsCompilation) As Boolean
Parameters
- stream
- Stream
- syntaxTree
- QsCompilation
Returns
Applies to
ReadBinary(String, QsCompilation)
Given the path to a Q# binary file, reads the content of that file and returns the corresponding compilation as out parameter. Throws the corresponding exception if the given path does not correspond to a suitable binary file.
public static bool ReadBinary (string file, out Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation? syntaxTree);
static member ReadBinary : string * QsCompilation -> bool
Public Shared Function ReadBinary (file As String, ByRef syntaxTree As QsCompilation) As Boolean
Parameters
- file
- String
- syntaxTree
- QsCompilation