uCalc API Version: 2.1.3-preview.2 Released: 6/16/2026

Warning

uCalc API Preview Release Notice:The documentation describes the intended behavior of the API. The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.

Data(IntPtr, int)

Method

Product: 

String Library

Class: 

String

Attaches a uCalc string to a raw string address in memory

Syntax

Data(IntPtr, int)

Parameters

StringAddress
IntPtr
Address in memory of raw string
Size
int
Number of characters

Return

String

Remarks

This sets a uCalc string based on a memory address and a size. This is faster than copying one string to another. The original string address must remain valid when this new string is used, until this string is released or its value is changed, at which point it will no longer depend on the original raw address.

Examples