Compartir a través de


Allocation.CreateFromString(RenderScript, String, AllocationUsage) Method

Definition

Creates an Allocation containing string data encoded in UTF-8 format.

[Android.Runtime.Register("createFromString", "(Landroid/renderscript/RenderScript;Ljava/lang/String;I)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateFromString (Android.Renderscripts.RenderScript? rs, string? str, Android.Renderscripts.AllocationUsage usage);
[<Android.Runtime.Register("createFromString", "(Landroid/renderscript/RenderScript;Ljava/lang/String;I)Landroid/renderscript/Allocation;", "")>]
static member CreateFromString : Android.Renderscripts.RenderScript * string * Android.Renderscripts.AllocationUsage -> Android.Renderscripts.Allocation

Parameters

rs
RenderScript

Context to which the allocation will belong.

str
String

string to create the allocation from

usage
AllocationUsage

bit field specifying how the allocaiton is utilized

Returns

Attributes

Remarks

Creates an Allocation containing string data encoded in UTF-8 format.

Java documentation for android.renderscript.Allocation.createFromString(android.renderscript.RenderScript, java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to