Udostępnij za pośrednictwem


Allocation.Copy1DRangeTo Method

Definition

Overloads

Copy1DRangeTo(Int32, Int32, Object)

Copy a 1D region of this Allocation into an array.

Copy1DRangeTo(Int32, Int32, Byte[])

Copy a 1D region of this Allocation into an array.

Copy1DRangeTo(Int32, Int32, Int16[])

Copy a 1D region of this Allocation into an array.

Copy1DRangeTo(Int32, Int32, Int32[])

Copy a 1D region of this Allocation into an array.

Copy1DRangeTo(Int32, Int32, Single[])

Copy a 1D region of this Allocation into an array.

Copy1DRangeTo(Int32, Int32, Object)

Copy a 1D region of this Allocation into an array.

[Android.Runtime.Register("copy1DRangeTo", "(IILjava/lang/Object;)V", "GetCopy1DRangeTo_IILjava_lang_Object_Handler", ApiSince=23)]
public virtual void Copy1DRangeTo (int off, int count, Java.Lang.Object? array);
[<Android.Runtime.Register("copy1DRangeTo", "(IILjava/lang/Object;)V", "GetCopy1DRangeTo_IILjava_lang_Object_Handler", ApiSince=23)>]
abstract member Copy1DRangeTo : int * int * Java.Lang.Object -> unit
override this.Copy1DRangeTo : int * int * Java.Lang.Object -> unit

Parameters

off
Int32

The offset of the first element to be copied.

count
Int32

The number of elements to be copied.

array
Object

The source array.

Attributes

Remarks

Copy a 1D region of this Allocation into an array. This method is type checked and will generate exceptions if the Allocation's android.renderscript.Element does not match the component type of the array passed in.

The size of the region is: count * #getElement.Element#getBytesSize.

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

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 region. 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 region. The padding bytes for the cells must not be part of the array.

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

Copy1DRangeTo(Int32, Int32, Byte[])

Copy a 1D region of this Allocation into an array.

[Android.Runtime.Register("copy1DRangeTo", "(II[B)V", "GetCopy1DRangeTo_IIarrayBHandler", ApiSince=23)]
public virtual void Copy1DRangeTo (int off, int count, byte[]? d);
[<Android.Runtime.Register("copy1DRangeTo", "(II[B)V", "GetCopy1DRangeTo_IIarrayBHandler", ApiSince=23)>]
abstract member Copy1DRangeTo : int * int * byte[] -> unit
override this.Copy1DRangeTo : int * int * byte[] -> unit

Parameters

off
Int32

The offset of the first element to be copied.

count
Int32

The number of elements to be copied.

d
Byte[]

the source array

Attributes

Remarks

Copy a 1D region of this Allocation into an array. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is neither an 8 bit integer nor a vector of 8 bit integers android.renderscript.Element.DataType.

The size of the region is: count * #getElement.Element#getBytesSize.

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

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 region. 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 region. The padding bytes for the cells must not be part of the array.

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

Copy1DRangeTo(Int32, Int32, Int16[])

Copy a 1D region of this Allocation into an array.

[Android.Runtime.Register("copy1DRangeTo", "(II[S)V", "GetCopy1DRangeTo_IIarraySHandler", ApiSince=23)]
public virtual void Copy1DRangeTo (int off, int count, short[]? d);
[<Android.Runtime.Register("copy1DRangeTo", "(II[S)V", "GetCopy1DRangeTo_IIarraySHandler", ApiSince=23)>]
abstract member Copy1DRangeTo : int * int * int16[] -> unit
override this.Copy1DRangeTo : int * int * int16[] -> unit

Parameters

off
Int32

The offset of the first element to be copied.

count
Int32

The number of elements to be copied.

d
Int16[]

the source array

Attributes

Remarks

Copy a 1D region of this Allocation into an array. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is neither a 16 bit integer nor a vector of 16 bit integers android.renderscript.Element.DataType.

The size of the region is: count * #getElement.Element#getBytesSize.

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

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 region. 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 region. The padding bytes for the cells must not be part of the array.

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

Copy1DRangeTo(Int32, Int32, Int32[])

Copy a 1D region of this Allocation into an array.

[Android.Runtime.Register("copy1DRangeTo", "(II[I)V", "GetCopy1DRangeTo_IIarrayIHandler", ApiSince=23)]
public virtual void Copy1DRangeTo (int off, int count, int[]? d);
[<Android.Runtime.Register("copy1DRangeTo", "(II[I)V", "GetCopy1DRangeTo_IIarrayIHandler", ApiSince=23)>]
abstract member Copy1DRangeTo : int * int * int[] -> unit
override this.Copy1DRangeTo : int * int * int[] -> unit

Parameters

off
Int32

The offset of the first element to be copied.

count
Int32

The number of elements to be copied.

d
Int32[]

the source array

Attributes

Remarks

Copy a 1D region of this Allocation into an array. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is neither a 32 bit integer nor a vector of 32 bit integers android.renderscript.Element.DataType.

The size of the region is: count * #getElement.Element#getBytesSize.

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

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 region. 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 region. The padding bytes for the cells must not be part of the array.

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

Copy1DRangeTo(Int32, Int32, Single[])

Copy a 1D region of this Allocation into an array.

[Android.Runtime.Register("copy1DRangeTo", "(II[F)V", "GetCopy1DRangeTo_IIarrayFHandler", ApiSince=23)]
public virtual void Copy1DRangeTo (int off, int count, float[]? d);
[<Android.Runtime.Register("copy1DRangeTo", "(II[F)V", "GetCopy1DRangeTo_IIarrayFHandler", ApiSince=23)>]
abstract member Copy1DRangeTo : int * int * single[] -> unit
override this.Copy1DRangeTo : int * int * single[] -> unit

Parameters

off
Int32

The offset of the first element to be copied.

count
Int32

The number of elements to be copied.

d
Single[]

the source array.

Attributes

Remarks

Copy a 1D region of this Allocation into an array. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is neither a 32 bit float nor a vector of 32 bit floats android.renderscript.Element.DataType.

The size of the region is: count * #getElement.Element#getBytesSize.

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

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 region. 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 region. The padding bytes for the cells must not be part of the array.

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