Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
  
  
FieldPacker
  public
  
  
  
  class
  FieldPacker
  
    extends Object
  
  
  
  
  
  
  
    
  
      This class was deprecated
      in API level 31.
    Renderscript has been deprecated in API level 31. Please refer to the migration
 guide for the proposed alternatives.
  
  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.
Summary
| Inherited methods | 
|---|
| 
    From class
      
        
          java.lang.Object
        
      
      
  
  
  
    | 
        
        
        
        
        
        Object | 
      clone()
      Creates and returns a copy of this object.
        
    
 |  
  
  
    | 
        
        
        
        
        
        boolean | 
      equals(Object obj)
      Indicates whether some other object is "equal to" this one.
        
    
 |  
  
  
    | 
        
        
        
        
        
        void | 
      finalize()
      Called by the garbage collector on an object when garbage collection
 determines that there are no more references to the object.
        
    
 |  
  
  
    | 
        
        
        
        final
        
        Class<?> | 
      getClass()
      Returns the runtime class of this Object. |  
  
  
    | 
        
        
        
        
        
        int | 
      hashCode()
      Returns a hash code value for the object.
        
    
 |  
  
  
    | 
        
        
        
        final
        
        void | 
      notify()
      Wakes up a single thread that is waiting on this object's
 monitor.
        
    
 |  
  
  
    | 
        
        
        
        final
        
        void | 
      notifyAll()
      Wakes up all threads that are waiting on this object's monitor.
        
    
 |  
  
  
    | 
        
        
        
        
        
        String | 
      toString()
      Returns a string representation of the object.
        
    
 |  
  
  
    | 
        
        
        
        final
        
        void | 
      wait(long timeoutMillis, int nanos)
      Causes the current thread to wait until it is awakened, typically
 by being notified or interrupted, or until a
 certain amount of real time has elapsed.
        
    
 |  
  
  
    | 
        
        
        
        final
        
        void | 
      wait(long timeoutMillis)
      Causes the current thread to wait until it is awakened, typically
 by being notified or interrupted, or until a
 certain amount of real time has elapsed.
        
    
 |  
  
  
    | 
        
        
        
        final
        
        void | 
      wait()
      Causes the current thread to wait until it is awakened, typically
 by being notified or interrupted.
        
    
 |  | 
Public constructors
    FieldPacker
    
public FieldPacker (byte[] data)
    
    
    
  
    
 
    FieldPacker
    
public FieldPacker (int len)
    
    
    
  
    
 
Public methods
    addBoolean
    
public void addBoolean (boolean v)
    
    
    
  
    
 
    addF32
    
public void addF32 (float v)
    
    
    
  
    
 
    addF32
    
public void addF32 (Float4 v)
    
    
    
  
    
 
    addF32
    
public void addF32 (Float3 v)
    
    
    
  
    
 
    addF32
    
public void addF32 (Float2 v)
    
    
    
  
    
 
    addF64
    
public void addF64 (Double4 v)
    
    
    
  
    
 
    addF64
    
public void addF64 (double v)
    
    
    
  
    
 
    addF64
    
public void addF64 (Double3 v)
    
    
    
  
    
 
    addF64
    
public void addF64 (Double2 v)
    
    
    
  
    
 
    addI16
    
public void addI16 (Short2 v)
    
    
    
  
    
 
    addI16
    
public void addI16 (Short3 v)
    
    
    
  
    
 
    addI16
    
public void addI16 (Short4 v)
    
    
    
  
    
 
    addI16
    
public void addI16 (short v)
    
    
    
  
    
 
    addI32
    
public void addI32 (int v)
    
    
    
  
    
 
    addI32
    
public void addI32 (Int2 v)
    
    
    
  
    
 
    addI32
    
public void addI32 (Int3 v)
    
    
    
  
    
 
    addI32
    
public void addI32 (Int4 v)
    
    
    
  
    
 
    addI64
    
public void addI64 (long v)
    
    
    
  
    
 
    addI64
    
public void addI64 (Long2 v)
    
    
    
  
    
 
    addI64
    
public void addI64 (Long3 v)
    
    
    
  
    
 
    addI64
    
public void addI64 (Long4 v)
    
    
    
  
    
 
    addI8
    
public void addI8 (Byte2 v)
    
    
    
  
    
 
    addI8
    
public void addI8 (Byte3 v)
    
    
    
  
    
 
    addI8
    
public void addI8 (Byte4 v)
    
    
    
  
    
 
    addI8
    
public void addI8 (byte v)
    
    
    
  
    
 
    addMatrix
    
public void addMatrix (Matrix3f v)
    
    
    
  
    
 
    addMatrix
    
public void addMatrix (Matrix2f v)
    
    
    
  
    
 
    addMatrix
    
public void addMatrix (Matrix4f v)
    
    
    
  
    
 
    addObj
    
public void addObj (BaseObj obj)
    
    
    
  
    
 
    addU16
    
public void addU16 (Int3 v)
    
    
    
  
    
 
    addU16
    
public void addU16 (int v)
    
    
    
  
    
 
    addU16
    
public void addU16 (Int4 v)
    
    
    
  
    
 
    addU16
    
public void addU16 (Int2 v)
    
    
    
  
    
 
    addU32
    
public void addU32 (Long2 v)
    
    
    
  
    
 
    addU32
    
public void addU32 (Long3 v)
    
    
    
  
    
 
    addU32
    
public void addU32 (long v)
    
    
    
  
    
 
    addU32
    
public void addU32 (Long4 v)
    
    
    
  
    
 
    addU64
    
public void addU64 (Long4 v)
    
    
    
  
    
 
    addU64
    
public void addU64 (long v)
    
    
    
  
    
 
    addU64
    
public void addU64 (Long3 v)
    
    
    
  
    
 
    addU64
    
public void addU64 (Long2 v)
    
    
    
  
    
 
    addU8
    
public void addU8 (short v)
    
    
    
  
    
 
    addU8
    
public void addU8 (Short4 v)
    
    
    
  
    
 
    addU8
    
public void addU8 (Short3 v)
    
    
    
  
    
 
    addU8
    
public void addU8 (Short2 v)
    
    
    
  
    
 
    align
    
public void align (int v)
    
    
    
  
    
 
    getData
    
public final byte[] getData ()
    
    
    
  
    
 
    reset
    
public void reset (int i)
    
    
    
  
    
 
    reset
    
public void reset ()
    
    
    
  
 
    skip
    
public void skip (int i)
    
    
    
  
    
 
    subBoolean
    
public boolean subBoolean ()
    
    
    
  
    
 
    subByte2
    
public Byte2 subByte2 ()
    
    
    
  
    
 
    subByte3
    
public Byte3 subByte3 ()
    
    
    
  
    
 
    subByte4
    
public Byte4 subByte4 ()
    
    
    
  
    
 
    subDouble2
    
public Double2 subDouble2 ()
    
    
    
  
    
 
    subDouble3
    
public Double3 subDouble3 ()
    
    
    
  
    
 
    subDouble4
    
public Double4 subDouble4 ()
    
    
    
  
    
 
    subF32
    
public float subF32 ()
    
    
    
  
    
 
    subF64
    
public double subF64 ()
    
    
    
  
    
 
    subFloat2
    
public Float2 subFloat2 ()
    
    
    
  
    
 
    subFloat3
    
public Float3 subFloat3 ()
    
    
    
  
    
 
    subFloat4
    
public Float4 subFloat4 ()
    
    
    
  
    
 
    subI16
    
public short subI16 ()
    
    
    
  
    
 
    subI32
    
public int subI32 ()
    
    
    
  
    
 
    subI64
    
public long subI64 ()
    
    
    
  
    
 
    subI8
    
public byte subI8 ()
    
    
    
  
    
 
    subInt2
    
public Int2 subInt2 ()
    
    
    
  
    
 
    subInt3
    
public Int3 subInt3 ()
    
    
    
  
    
 
    subInt4
    
public Int4 subInt4 ()
    
    
    
  
    
 
    subLong2
    
public Long2 subLong2 ()
    
    
    
  
    
 
    subLong3
    
public Long3 subLong3 ()
    
    
    
  
    
 
    subLong4
    
public Long4 subLong4 ()
    
    
    
  
    
 
    subMatrix2f
    
public Matrix2f subMatrix2f ()
    
    
    
  
    
 
    subMatrix3f
    
public Matrix3f subMatrix3f ()
    
    
    
  
    
 
    subMatrix4f
    
public Matrix4f subMatrix4f ()
    
    
    
  
    
 
    subShort2
    
public Short2 subShort2 ()
    
    
    
  
    
 
    subShort3
    
public Short3 subShort3 ()
    
    
    
  
    
 
    subShort4
    
public Short4 subShort4 ()
    
    
    
  
    
 
    subalign
    
public void subalign (int v)
    
    
    
  
    
 
 
 
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]