Beaver.MLIR.StringRef (beaver v0.3.4)

This module defines functions working with MLIR StringRef.

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.

Types

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

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.