tcc_cstring_object: CString S3 Class

tcc_cstring_objectR Documentation

CString S3 Class

Description

Wrapper around a C string pointer with an optional cached R copy. Ownership follows the underlying external pointer; this wrapper does not add finalizer or freeing behavior on top of that pointer.

Usage

tcc_cstring_object(ptr, clone = TRUE, owned = FALSE)

Arguments

ptr

External pointer to C string

clone

Whether to clone the string immediately (safe for R use)

owned

Currently unused. Reserved for future finalizer support.

Value

A tcc_cstring object


Rtinycc documentation built on April 28, 2026, 1:07 a.m.