Allocation.CreateFromString(RenderScript, String, AllocationUsage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.