Beaver.MLIR.StringRef (beaver v0.2.19)

This module defines functions working with MLIR StringRef.

Link to this section Summary

Functions

Create a Elixir owned C string from a Elixir bitstring and create a StringRef from it. StringRef will keep a reference to the C string to prevent it from being garbage collected by BEAM.

Converts an StringRef to a string.

Link to this section Types

@type t() :: %Beaver.MLIR.StringRef{bag: term(), ref: term()}

Link to this section Functions

Create a Elixir owned C string from a Elixir bitstring and create a StringRef from it. StringRef will keep a reference to the C string to prevent it from being garbage collected by BEAM.

Link to this function

to_string(string_ref)

Converts an StringRef to a string.