|
MLIR 23.0.0git
|
Accumulates into a file, either writing text (default) or binary. More...
#include "mlir/Bindings/Python/NanobindUtils.h"
Public Member Functions | |
| PyFileAccumulator (const nanobind::object &fileOrStringObject, bool binary) | |
| MlirStringCallback | getCallback () |
| void * | getUserData () |
Accumulates into a file, either writing text (default) or binary.
The file may be a Python file-like object or a path to a file.
Definition at line 169 of file NanobindUtils.h.
|
inline |
Definition at line 171 of file NanobindUtils.h.
References MlirStringRef::data, MlirStringRef::length, mlirLlvmRawFdOStreamCreate(), and mlirLlvmRawFdOStreamIsNull().
|
inline |
Definition at line 193 of file NanobindUtils.h.
|
inline |
Definition at line 198 of file NanobindUtils.h.