Language

FieldPacker Class

Definition

Utility class for packing arguments and structures from Android system objects to RenderScript objects.

[Android.Runtime.Register("android/renderscript/FieldPacker", DoNotGenerateAcw=true)]
public class FieldPacker : Java.Lang.Object
[<Android.Runtime.Register("android/renderscript/FieldPacker", DoNotGenerateAcw=true)>]
type FieldPacker = class
    inherit Object
Inheritance
FieldPacker
Attributes

Remarks

Utility class for packing arguments and structures from Android system objects to RenderScript objects.

This class is only intended to be used to support the reflected code generated by the RS tool chain. It should not be called directly.

This member is deprecated. Renderscript has been deprecated in API level 31. Please refer to the migration guide for the proposed alternatives.

Java documentation for android.renderscript.FieldPacker.

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.

Constructors

Name Description
FieldPacker(Byte[])

Creates a field packer with the supplied bytes and its position at the end of the buffer.

FieldPacker(Int32)

Creates an empty packing buffer of the specified capacity.

FieldPacker(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Name Description
Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode

Gets the identity hash code assigned to this Java peer by the interop runtime.

(Inherited from Object)
JniManagedPeerState

Gets the state flags last assigned by the runtime.

(Inherited from JavaObject)
JniPeerMembers

Gets the JNI metadata used to access members of this Java binding.

PeerReference

Gets the JNI object reference for this Java peer.

(Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Name Description
AddBoolean(Boolean)

Packs a Boolean as one byte and advances the position.

AddF32(Float2)

Packs two 32-bit floating-point components in x, y order.

AddF32(Float3)

Packs three 32-bit floating-point components in x, y, z order.

AddF32(Float4)

Packs four 32-bit floating-point components in x, y, z, w order.

AddF32(Single)

Packs a 32-bit floating-point value in little-endian order.

AddF64(Double)

Packs a 64-bit floating-point value in little-endian order.

AddF64(Double2)

Packs two 64-bit floating-point components in x, y order.

AddF64(Double3)

Packs three 64-bit floating-point components in x, y, z order.

AddF64(Double4)

Packs four 64-bit floating-point components in x, y, z, w order.

AddI16(Int16)

Packs a signed 16-bit integer in little-endian order.

AddI16(Short2)

Packs two signed 16-bit components in x, y order.

AddI16(Short3)

Packs three signed 16-bit components in x, y, z order.

AddI16(Short4)

Packs four signed 16-bit components in x, y, z, w order.

AddI32(Int2)

Packs two signed 32-bit components in x, y order.

AddI32(Int3)

Packs three signed 32-bit components in x, y, z order.

AddI32(Int32)

Packs a signed 32-bit integer in little-endian order.

AddI32(Int4)

Packs four signed 32-bit components in x, y, z, w order.

AddI64(Int64)

Packs a signed 64-bit integer in little-endian order.

AddI64(Long2)

Packs two signed 64-bit components in x, y order.

AddI64(Long3)

Packs three signed 64-bit components in x, y, z order.

AddI64(Long4)

Packs four signed 64-bit components in x, y, z, w order.

AddI8(Byte2)

Packs two signed 8-bit components in x, y order.

AddI8(Byte3)

Packs three signed 8-bit components in x, y, z order.

AddI8(Byte4)

Packs four signed 8-bit components in x, y, z, w order.

AddI8(SByte)

Packs a signed 8-bit integer and advances the position.

AddMatrix(Matrix2f)

Packs a 2-by-2 matrix in its backing-array order.

AddMatrix(Matrix3f)

Packs a 3-by-3 matrix in its backing-array order.

AddMatrix(Matrix4f)

Packs a 4-by-4 matrix in its backing-array order.

AddObj(BaseObj)

Packs a native object handle using the runtime's object layout.

AddU16(Int2)

Packs two unsigned 16-bit components in x, y order.

AddU16(Int3)

Packs three unsigned 16-bit components in x, y, z order.

AddU16(Int32)

Packs an unsigned 16-bit integer in little-endian order.

AddU16(Int4)

Packs four unsigned 16-bit components in x, y, z, w order.

AddU32(Int64)

Packs an unsigned 32-bit integer in little-endian order.

AddU32(Long2)

Packs two unsigned 32-bit components in x, y order.

AddU32(Long3)

Packs three unsigned 32-bit components in x, y, z order.

AddU32(Long4)

Packs four unsigned 32-bit components in x, y, z, w order.

AddU64(Int64)

Packs an unsigned 64-bit integer in little-endian order.

AddU64(Long2)

Packs two unsigned 64-bit components in x, y order.

AddU64(Long3)

Packs three unsigned 64-bit components in x, y, z order.

AddU64(Long4)

Packs four unsigned 64-bit components in x, y, z, w order.

AddU8(Int16)

Packs an unsigned 8-bit integer and advances the position.

AddU8(Short2)

Packs two unsigned 8-bit components in x, y order.

AddU8(Short3)

Packs three unsigned 8-bit components in x, y, z order.

AddU8(Short4)

Packs four unsigned 8-bit components in x, y, z, w order.

Align(Int32)

Adds zero bytes until the position is aligned to the specified boundary.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Construct(JniObjectReference, JniObjectReferenceOptions)

Delegates construction of this peer to the runtime's value manager.

(Inherited from JavaObject)
Dispose()

Releases the resources held by this Java peer.

(Inherited from Object)
Dispose(Boolean)

Releases the resources held by this Java peer.

(Inherited from Object)
DisposeUnlessReferenced()

Asks the value manager to dispose this peer unless its mapping retains this same managed instance.

(Inherited from JavaObject)
Equals(Object)

Tests whether another managed peer refers to the same Java object.

(Inherited from JavaObject)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetData()

Gets the complete packing buffer.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()
Obsolete.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Reset()

Sets the position to the start without erasing the buffer.

Reset(Int32)

Sets the position without changing the buffer contents.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

Stores a reference value in the control block without creating a JNI reference copy.

(Inherited from JavaObject)
Skip(Int32)

Moves the position by the specified byte displacement without changing the buffer contents.

Subalign(Int32)

Moves the position backward to an alignment boundary and skips recorded padding.

SubBoolean()

Reads one byte backward from the current position and tests whether it is one.

SubByte2()

Reads a two-component signed 8-bit vector backward from the current position.

SubByte3()

Reads a three-component signed 8-bit vector backward from the current position.

SubByte4()

Reads a four-component signed 8-bit vector backward from the current position.

SubDouble2()

Reads a two-component 64-bit floating-point vector backward from the current position.

SubDouble3()

Reads a three-component 64-bit floating-point vector backward from the current position.

SubDouble4()

Reads a four-component 64-bit floating-point vector backward from the current position.

SubF32()

Reads a 32-bit floating-point value backward from the current position.

SubF64()

Reads a 64-bit floating-point value backward from the current position.

SubFloat2()

Reads a two-component 32-bit floating-point vector backward from the current position.

SubFloat3()

Reads a three-component 32-bit floating-point vector backward from the current position.

SubFloat4()

Reads a four-component 32-bit floating-point vector backward from the current position.

SubI16()

Reads a signed 16-bit integer backward from the current position.

SubI32()

Reads a signed 32-bit integer backward from the current position.

SubI64()

Reads a signed 64-bit integer backward from the current position.

SubI8()

Reads a signed 8-bit integer backward from the current position.

SubInt2()

Reads a two-component signed 32-bit vector backward from the current position.

SubInt3()

Reads a three-component signed 32-bit vector backward from the current position.

SubInt4()

Reads a four-component signed 32-bit vector backward from the current position.

SubLong2()

Reads a two-component signed 64-bit vector backward from the current position.

SubLong3()

Reads a three-component signed 64-bit vector backward from the current position.

SubLong4()

Reads a four-component signed 64-bit vector backward from the current position.

SubMatrix2f()

Reads a 2-by-2 matrix backward from the current position.

SubMatrix3f()

Reads a 3-by-3 matrix backward from the current position.

SubMatrix4f()

Reads a 4-by-4 matrix backward from the current position.

SubShort2()

Reads a two-component signed 16-bit vector backward from the current position.

SubShort3()

Reads a three-component signed 16-bit vector backward from the current position.

SubShort4()

Reads a four-component signed 16-bit vector backward from the current position.

ToArray<T>()

Creates a managed array from this Java array wrapper.

(Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime()

Unregisters this Java peer from the interop runtime.

(Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

Name Description
IJavaPeerable.Disposed()

Marks this peer as disposed and calls Dispose with disposing set to true.

(Inherited from JavaObject)
IJavaPeerable.Finalized()

Marks this peer as disposed and calls Dispose with disposing set to false.

(Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

Gets the native control-block pointer used by this peer.

(Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

Stores the identity hash code supplied by the runtime.

(Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Replaces the stored managed peer state flags.

(Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

Updates the peer reference and releases a disposed peer's control block when the reference is invalid.

(Inherited from JavaObject)

Extension Methods

Name Description
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)

Reuses a compatible managed peer or obtains a wrapper of the requested type.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to