Contents

BNNSGraphGetArgumentPosition(_:_:_:)

Returns the index into the arguments array for the given function argument.

Declaration

func BNNSGraphGetArgumentPosition(_ graph: bnns_graph_t, _ function: UnsafePointer<CChar>?, _ argument: UnsafePointer<CChar>) -> Int

Parameters

  • graph:

    The compiled graph object.

  • function:

    The function. Specify as nil if the graph only contains one function.

  • argument:

    The name of the input or output argument.

Return Value

Returns the index into the arguments array for the given function argument, or SIZE_T_MAX if the query fails.

See Also

Querying a graph’s properties