CompilationLoader.ReadBinary Method

Definition

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

Boolean

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

Returns

Boolean

Applies to