共用方式為


Allocation.CopyFromUnchecked Method

Definition

Overloads

CopyFromUnchecked(Object)

Copy into this Allocation from an array.

CopyFromUnchecked(Byte[])

Copy into this Allocation from an array.

CopyFromUnchecked(Int16[])

Copy into this Allocation from an array.

CopyFromUnchecked(Int32[])

Copy into this Allocation from an array.

CopyFromUnchecked(Single[])

Copy into this Allocation from an array.

CopyFromUnchecked(Object)

Copy into this Allocation from an array.

[Android.Runtime.Register("copyFromUnchecked", "(Ljava/lang/Object;)V", "GetCopyFromUnchecked_Ljava_lang_Object_Handler")]
public virtual void CopyFromUnchecked (Java.Lang.Object? array);
[<Android.Runtime.Register("copyFromUnchecked", "(Ljava/lang/Object;)V", "GetCopyFromUnchecked_Ljava_lang_Object_Handler")>]
abstract member CopyFromUnchecked : Java.Lang.Object -> unit
override this.CopyFromUnchecked : Java.Lang.Object -> unit

Parameters

array
Object

The source array

Attributes

Remarks

Copy into this Allocation from an array. This method does not guarantee that the Allocation is compatible with the input buffer; it copies memory without reinterpretation.

If the Allocation does not have Vec3 Elements, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize().

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is disabled, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must be part of the array.

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is enabled, then the size of the array in bytes must be at least 3/4 the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must not be part of the array.

Java documentation for android.renderscript.Allocation.copyFromUnchecked(java.lang.Object).

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

CopyFromUnchecked(Byte[])

Copy into this Allocation from an array.

[Android.Runtime.Register("copyFromUnchecked", "([B)V", "GetCopyFromUnchecked_arrayBHandler")]
public virtual void CopyFromUnchecked (byte[]? d);
[<Android.Runtime.Register("copyFromUnchecked", "([B)V", "GetCopyFromUnchecked_arrayBHandler")>]
abstract member CopyFromUnchecked : byte[] -> unit
override this.CopyFromUnchecked : byte[] -> unit

Parameters

d
Byte[]

the source array

Attributes

Remarks

Copy into this Allocation from an array. This method does not guarantee that the Allocation is compatible with the input buffer; it copies memory without reinterpretation.

If the Allocation does not have Vec3 Elements, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize().

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is disabled, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must be part of the array.

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is enabled, then the size of the array in bytes must be at least 3/4 the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must not be part of the array.

Java documentation for android.renderscript.Allocation.copyFromUnchecked(byte[]).

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

CopyFromUnchecked(Int16[])

Copy into this Allocation from an array.

[Android.Runtime.Register("copyFromUnchecked", "([S)V", "GetCopyFromUnchecked_arraySHandler")]
public virtual void CopyFromUnchecked (short[]? d);
[<Android.Runtime.Register("copyFromUnchecked", "([S)V", "GetCopyFromUnchecked_arraySHandler")>]
abstract member CopyFromUnchecked : int16[] -> unit
override this.CopyFromUnchecked : int16[] -> unit

Parameters

d
Int16[]

the source array

Attributes

Remarks

Copy into this Allocation from an array. This method does not guarantee that the Allocation is compatible with the input buffer; it copies memory without reinterpretation.

If the Allocation does not have Vec3 Elements, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize().

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is disabled, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must be part of the array.

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is enabled, then the size of the array in bytes must be at least 3/4 the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must not be part of the array.

Java documentation for android.renderscript.Allocation.copyFromUnchecked(short[]).

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

CopyFromUnchecked(Int32[])

Copy into this Allocation from an array.

[Android.Runtime.Register("copyFromUnchecked", "([I)V", "GetCopyFromUnchecked_arrayIHandler")]
public virtual void CopyFromUnchecked (int[]? d);
[<Android.Runtime.Register("copyFromUnchecked", "([I)V", "GetCopyFromUnchecked_arrayIHandler")>]
abstract member CopyFromUnchecked : int[] -> unit
override this.CopyFromUnchecked : int[] -> unit

Parameters

d
Int32[]

the source array

Attributes

Remarks

Copy into this Allocation from an array. This method does not guarantee that the Allocation is compatible with the input buffer; it copies memory without reinterpretation.

If the Allocation does not have Vec3 Elements, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize().

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is disabled, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must be part of the array.

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is enabled, then the size of the array in bytes must be at least 3/4 the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must not be part of the array.

Java documentation for android.renderscript.Allocation.copyFromUnchecked(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

CopyFromUnchecked(Single[])

Copy into this Allocation from an array.

[Android.Runtime.Register("copyFromUnchecked", "([F)V", "GetCopyFromUnchecked_arrayFHandler")]
public virtual void CopyFromUnchecked (float[]? d);
[<Android.Runtime.Register("copyFromUnchecked", "([F)V", "GetCopyFromUnchecked_arrayFHandler")>]
abstract member CopyFromUnchecked : single[] -> unit
override this.CopyFromUnchecked : single[] -> unit

Parameters

d
Single[]

the source array

Attributes

Remarks

Copy into this Allocation from an array. This method does not guarantee that the Allocation is compatible with the input buffer; it copies memory without reinterpretation.

If the Allocation does not have Vec3 Elements, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize().

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is disabled, then the size of the array in bytes must be at least the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must be part of the array.

If the Allocation has Vec3 Elements and #setAutoPadding AutoPadding is enabled, then the size of the array in bytes must be at least 3/4 the size of the Allocation #getBytesSize getBytesSize(). The padding bytes for the cells must not be part of the array.

Java documentation for android.renderscript.Allocation.copyFromUnchecked(float[]).

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