Allocation.Copy1DRangeFrom Method

Definition

Overloads

Copy1DRangeFrom(Int32, Int32, Object)

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

Copy1DRangeFrom(Int32, Int32, Byte[])

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

Copy1DRangeFrom(Int32, Int32, Int16[])

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

Copy1DRangeFrom(Int32, Int32, Int32[])

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

Copy1DRangeFrom(Int32, Int32, Single[])

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

Copy1DRangeFrom(Int32, Int32, Allocation, Int32)

Copy part of an Allocation into this Allocation.

Copy1DRangeFrom(Int32, Int32, Object)

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

[Android.Runtime.Register("copy1DRangeFrom", "(IILjava/lang/Object;)V", "GetCopy1DRangeFrom_IILjava_lang_Object_Handler")]
public virtual void Copy1DRangeFrom (int off, int count, Java.Lang.Object? array);
[<Android.Runtime.Register("copy1DRangeFrom", "(IILjava/lang/Object;)V", "GetCopy1DRangeFrom_IILjava_lang_Object_Handler")>]
abstract member Copy1DRangeFrom : int * int * Java.Lang.Object -> unit
override this.Copy1DRangeFrom : 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 an array into a 1D region of this Allocation. This variant 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.copy1DRangeFrom(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

Copy1DRangeFrom(Int32, Int32, Byte[])

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

[Android.Runtime.Register("copy1DRangeFrom", "(II[B)V", "GetCopy1DRangeFrom_IIarrayBHandler")]
public virtual void Copy1DRangeFrom (int off, int count, byte[]? d);
[<Android.Runtime.Register("copy1DRangeFrom", "(II[B)V", "GetCopy1DRangeFrom_IIarrayBHandler")>]
abstract member Copy1DRangeFrom : int * int * byte[] -> unit
override this.Copy1DRangeFrom : 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 an array into a 1D region of this Allocation. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is not 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.copy1DRangeFrom(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

Copy1DRangeFrom(Int32, Int32, Int16[])

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

[Android.Runtime.Register("copy1DRangeFrom", "(II[S)V", "GetCopy1DRangeFrom_IIarraySHandler")]
public virtual void Copy1DRangeFrom (int off, int count, short[]? d);
[<Android.Runtime.Register("copy1DRangeFrom", "(II[S)V", "GetCopy1DRangeFrom_IIarraySHandler")>]
abstract member Copy1DRangeFrom : int * int * int16[] -> unit
override this.Copy1DRangeFrom : 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 an array into a 1D region of this Allocation. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is not an 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.copy1DRangeFrom(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

Copy1DRangeFrom(Int32, Int32, Int32[])

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

[Android.Runtime.Register("copy1DRangeFrom", "(II[I)V", "GetCopy1DRangeFrom_IIarrayIHandler")]
public virtual void Copy1DRangeFrom (int off, int count, int[]? d);
[<Android.Runtime.Register("copy1DRangeFrom", "(II[I)V", "GetCopy1DRangeFrom_IIarrayIHandler")>]
abstract member Copy1DRangeFrom : int * int * int[] -> unit
override this.Copy1DRangeFrom : 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 an array into a 1D region of this Allocation. This variant is type checked and will generate exceptions if the Allocation's android.renderscript.Element is not an 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.copy1DRangeFrom(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

Copy1DRangeFrom(Int32, Int32, Single[])

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

[Android.Runtime.Register("copy1DRangeFrom", "(II[F)V", "GetCopy1DRangeFrom_IIarrayFHandler")]
public virtual void Copy1DRangeFrom (int off, int count, float[]? d);
[<Android.Runtime.Register("copy1DRangeFrom", "(II[F)V", "GetCopy1DRangeFrom_IIarrayFHandler")>]
abstract member Copy1DRangeFrom : int * int * single[] -> unit
override this.Copy1DRangeFrom : 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 an array into a 1D region of this Allocation. 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.copy1DRangeFrom(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

Copy1DRangeFrom(Int32, Int32, Allocation, Int32)

Copy part of an Allocation into this Allocation.

[Android.Runtime.Register("copy1DRangeFrom", "(IILandroid/renderscript/Allocation;I)V", "GetCopy1DRangeFrom_IILandroid_renderscript_Allocation_IHandler")]
public virtual void Copy1DRangeFrom (int off, int count, Android.Renderscripts.Allocation? data, int dataOff);
[<Android.Runtime.Register("copy1DRangeFrom", "(IILandroid/renderscript/Allocation;I)V", "GetCopy1DRangeFrom_IILandroid_renderscript_Allocation_IHandler")>]
abstract member Copy1DRangeFrom : int * int * Android.Renderscripts.Allocation * int -> unit
override this.Copy1DRangeFrom : int * int * Android.Renderscripts.Allocation * int -> unit

Parameters

off
Int32

The offset of the first element to be copied.

count
Int32

The number of elements to be copied.

data
Allocation

the source data allocation.

dataOff
Int32

off The offset of the first element in data to be copied.

Attributes

Remarks

Copy part of an Allocation into this Allocation.

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