Android APIs
public class

FieldPacker

extends Object
java.lang.Object
   ↳ android.renderscript.FieldPacker

Class Overview

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

Public Constructors
FieldPacker(int len)
FieldPacker(byte[] data)
Public Methods
void addBoolean(boolean v)
void addF32(Float4 v)
void addF32(float v)
void addF32(Float3 v)
void addF32(Float2 v)
void addF64(Double3 v)
void addF64(double v)
void addF64(Double2 v)
void addF64(Double4 v)
void addI16(Short3 v)
void addI16(Short2 v)
void addI16(short v)
void addI16(Short4 v)
void addI32(Int2 v)
void addI32(Int3 v)
void addI32(int v)
void addI32(Int4 v)
void addI64(long v)
void addI64(Long4 v)
void addI64(Long3 v)
void addI64(Long2 v)
void addI8(byte v)
void addI8(Byte2 v)
void addI8(Byte3 v)
void addI8(Byte4 v)
void addMatrix(Matrix4f v)
void addMatrix(Matrix3f v)
void addMatrix(Matrix2f v)
void addObj(BaseObj obj)
void addU16(Int4 v)
void addU16(int v)
void addU16(Int3 v)
void addU16(Int2 v)
void addU32(Long4 v)
void addU32(Long2 v)
void addU32(Long3 v)
void addU32(long v)
void addU64(Long3 v)
void addU64(long v)
void addU64(Long4 v)
void addU64(Long2 v)
void addU8(Short4 v)
void addU8(short v)
void addU8(Short3 v)
void addU8(Short2 v)
void align(int v)
final byte[] getData()
void reset(int i)
void reset()
void skip(int i)
boolean subBoolean()
Byte2 subByte2()
Byte3 subByte3()
Byte4 subByte4()
Double2 subDouble2()
Double3 subDouble3()
Double4 subDouble4()
float subF32()
double subF64()
Float2 subFloat2()
Float3 subFloat3()
Float4 subFloat4()
short subI16()
int subI32()
long subI64()
byte subI8()
Int2 subInt2()
Int3 subInt3()
Int4 subInt4()
Long2 subLong2()
Long3 subLong3()
Long4 subLong4()
Matrix2f subMatrix2f()
Matrix3f subMatrix3f()
Matrix4f subMatrix4f()
Short2 subShort2()
Short3 subShort3()
Short4 subShort4()
void subalign(int v)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FieldPacker (int len)

Added in API level 11

Parameters
len int

public FieldPacker (byte[] data)

Added in API level 18

Parameters
data byte

Public Methods

public void addBoolean (boolean v)

Added in API level 11

Parameters
v boolean

public void addF32 (Float4 v)

Added in API level 11

Parameters
v Float4

public void addF32 (float v)

Added in API level 11

Parameters
v float

public void addF32 (Float3 v)

Added in API level 11

Parameters
v Float3

public void addF32 (Float2 v)

Added in API level 11

Parameters
v Float2

public void addF64 (Double3 v)

Added in API level 14

Parameters
v Double3

public void addF64 (double v)

Added in API level 11

Parameters
v double

public void addF64 (Double2 v)

Added in API level 14

Parameters
v Double2

public void addF64 (Double4 v)

Added in API level 14

Parameters
v Double4

public void addI16 (Short3 v)

Added in API level 11

Parameters
v Short3

public void addI16 (Short2 v)

Added in API level 11

Parameters
v Short2

public void addI16 (short v)

Added in API level 11

Parameters
v short

public void addI16 (Short4 v)

Added in API level 11

Parameters
v Short4

public void addI32 (Int2 v)

Added in API level 11

Parameters
v Int2

public void addI32 (Int3 v)

Added in API level 11

Parameters
v Int3

public void addI32 (int v)

Added in API level 11

Parameters
v int

public void addI32 (Int4 v)

Added in API level 11

Parameters
v Int4

public void addI64 (long v)

Added in API level 11

Parameters
v long

public void addI64 (Long4 v)

Added in API level 14

Parameters
v Long4

public void addI64 (Long3 v)

Added in API level 14

Parameters
v Long3

public void addI64 (Long2 v)

Added in API level 14

Parameters
v Long2

public void addI8 (byte v)

Added in API level 11

Parameters
v byte

public void addI8 (Byte2 v)

Added in API level 11

Parameters
v Byte2

public void addI8 (Byte3 v)

Added in API level 11

Parameters
v Byte3

public void addI8 (Byte4 v)

Added in API level 11

Parameters
v Byte4

public void addMatrix (Matrix4f v)

Added in API level 11

Parameters
v Matrix4f

public void addMatrix (Matrix3f v)

Added in API level 11

Parameters
v Matrix3f

public void addMatrix (Matrix2f v)

Added in API level 11

Parameters
v Matrix2f

public void addObj (BaseObj obj)

Added in API level 11

Parameters
obj BaseObj

public void addU16 (Int4 v)

Added in API level 11

Parameters
v Int4

public void addU16 (int v)

Added in API level 11

Parameters
v int

public void addU16 (Int3 v)

Added in API level 11

Parameters
v Int3

public void addU16 (Int2 v)

Added in API level 11

Parameters
v Int2

public void addU32 (Long4 v)

Added in API level 11

Parameters
v Long4

public void addU32 (Long2 v)

Added in API level 11

Parameters
v Long2

public void addU32 (Long3 v)

Added in API level 11

Parameters
v Long3

public void addU32 (long v)

Added in API level 11

Parameters
v long

public void addU64 (Long3 v)

Added in API level 14

Parameters
v Long3

public void addU64 (long v)

Added in API level 11

Parameters
v long

public void addU64 (Long4 v)

Added in API level 14

Parameters
v Long4

public void addU64 (Long2 v)

Added in API level 14

Parameters
v Long2

public void addU8 (Short4 v)

Added in API level 11

Parameters
v Short4

public void addU8 (short v)

Added in API level 11

Parameters
v short

public void addU8 (Short3 v)

Added in API level 11

Parameters
v Short3

public void addU8 (Short2 v)

Added in API level 11

Parameters
v Short2

public void align (int v)

Added in API level 11

Parameters
v int

public final byte[] getData ()

Added in API level 11

Returns
byte[]

public void reset (int i)

Added in API level 11

Parameters
i int

public void reset ()

Added in API level 11

public void skip (int i)

Added in API level 11

Parameters
i int

public boolean subBoolean ()

Added in API level 18

Returns
boolean

public Byte2 subByte2 ()

Added in API level 18

Returns
Byte2

public Byte3 subByte3 ()

Added in API level 18

Returns
Byte3

public Byte4 subByte4 ()

Added in API level 18

Returns
Byte4

public Double2 subDouble2 ()

Added in API level 18

Returns
Double2

public Double3 subDouble3 ()

Added in API level 18

Returns
Double3

public Double4 subDouble4 ()

Added in API level 18

Returns
Double4

public float subF32 ()

Added in API level 18

Returns
float

public double subF64 ()

Added in API level 18

Returns
double

public Float2 subFloat2 ()

Added in API level 18

Returns
Float2

public Float3 subFloat3 ()

Added in API level 18

Returns
Float3

public Float4 subFloat4 ()

Added in API level 18

Returns
Float4

public short subI16 ()

Added in API level 18

Returns
short

public int subI32 ()

Added in API level 18

Returns
int

public long subI64 ()

Added in API level 18

Returns
long

public byte subI8 ()

Added in API level 18

Returns
byte

public Int2 subInt2 ()

Added in API level 18

Returns
Int2

public Int3 subInt3 ()

Added in API level 18

Returns
Int3

public Int4 subInt4 ()

Added in API level 18

Returns
Int4

public Long2 subLong2 ()

Added in API level 18

Returns
Long2

public Long3 subLong3 ()

Added in API level 18

Returns
Long3

public Long4 subLong4 ()

Added in API level 18

Returns
Long4

public Matrix2f subMatrix2f ()

Added in API level 18

Returns
Matrix2f

public Matrix3f subMatrix3f ()

Added in API level 18

Returns
Matrix3f

public Matrix4f subMatrix4f ()

Added in API level 18

Returns
Matrix4f

public Short2 subShort2 ()

Added in API level 18

Returns
Short2

public Short3 subShort3 ()

Added in API level 18

Returns
Short3

public Short4 subShort4 ()

Added in API level 18

Returns
Short4

public void subalign (int v)

Added in API level 18

Parameters
v int