Skip to content

Most visited

Recently visited

navigation

FieldPacker

public class FieldPacker
extends Object

java.lang.Object
   ↳ android.support.v8.renderscript.FieldPacker


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(Float3 v)
void addF32(float v)
void addF32(Float4 v)
void addF32(Float2 v)
void addF64(Double4 v)
void addF64(double v)
void addF64(Double2 v)
void addF64(Double3 v)
void addI16(Short4 v)
void addI16(short v)
void addI16(Short3 v)
void addI16(Short2 v)
void addI32(Int3 v)
void addI32(int v)
void addI32(Int2 v)
void addI32(Int4 v)
void addI64(long v)
void addI64(Long3 v)
void addI64(Long2 v)
void addI64(Long4 v)
void addI8(Byte2 v)
void addI8(Byte4 v)
void addI8(Byte3 v)
void addI8(byte v)
void addMatrix(Matrix3f v)
void addMatrix(Matrix4f v)
void addMatrix(Matrix2f v)
void addObj(BaseObj obj)
void addU16(Int3 v)
void addU16(int v)
void addU16(Int2 v)
void addU16(Int4 v)
void addU32(Long2 v)
void addU32(Long3 v)
void addU32(long v)
void addU32(Long4 v)
void addU64(Long4 v)
void addU64(long v)
void addU64(Long3 v)
void addU64(Long2 v)
void addU8(Short2 v)
void addU8(short v)
void addU8(Short3 v)
void addU8(Short4 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)

Inherited methods

From class java.lang.Object

Public constructors

FieldPacker

added in version 23.0.0
FieldPacker (int len)

Parameters
len int

FieldPacker

added in version 23.0.0
FieldPacker (byte[] data)

Parameters
data byte

Public methods

addBoolean

added in version 23.0.0
void addBoolean (boolean v)

Parameters
v boolean

addF32

added in version 23.0.0
void addF32 (Float3 v)

Parameters
v Float3

addF32

added in version 23.0.0
void addF32 (float v)

Parameters
v float

addF32

added in version 23.0.0
void addF32 (Float4 v)

Parameters
v Float4

addF32

added in version 23.0.0
void addF32 (Float2 v)

Parameters
v Float2

addF64

added in version 23.0.0
void addF64 (Double4 v)

Parameters
v Double4

addF64

added in version 23.0.0
void addF64 (double v)

Parameters
v double

addF64

added in version 23.0.0
void addF64 (Double2 v)

Parameters
v Double2

addF64

added in version 23.0.0
void addF64 (Double3 v)

Parameters
v Double3

addI16

added in version 23.0.0
void addI16 (Short4 v)

Parameters
v Short4

addI16

added in version 23.0.0
void addI16 (short v)

Parameters
v short

addI16

added in version 23.0.0
void addI16 (Short3 v)

Parameters
v Short3

addI16

added in version 23.0.0
void addI16 (Short2 v)

Parameters
v Short2

addI32

added in version 23.0.0
void addI32 (Int3 v)

Parameters
v Int3

addI32

added in version 23.0.0
void addI32 (int v)

Parameters
v int

addI32

added in version 23.0.0
void addI32 (Int2 v)

Parameters
v Int2

addI32

added in version 23.0.0
void addI32 (Int4 v)

Parameters
v Int4

addI64

added in version 23.0.0
void addI64 (long v)

Parameters
v long

addI64

added in version 23.0.0
void addI64 (Long3 v)

Parameters
v Long3

addI64

added in version 23.0.0
void addI64 (Long2 v)

Parameters
v Long2

addI64

added in version 23.0.0
void addI64 (Long4 v)

Parameters
v Long4

addI8

added in version 23.0.0
void addI8 (Byte2 v)

Parameters
v Byte2

addI8

added in version 23.0.0
void addI8 (Byte4 v)

Parameters
v Byte4

addI8

added in version 23.0.0
void addI8 (Byte3 v)

Parameters
v Byte3

addI8

added in version 23.0.0
void addI8 (byte v)

Parameters
v byte

addMatrix

added in version 23.0.0
void addMatrix (Matrix3f v)

Parameters
v Matrix3f

addMatrix

added in version 23.0.0
void addMatrix (Matrix4f v)

Parameters
v Matrix4f

addMatrix

added in version 23.0.0
void addMatrix (Matrix2f v)

Parameters
v Matrix2f

addObj

added in version 23.0.0
void addObj (BaseObj obj)

Parameters
obj BaseObj

addU16

added in version 23.0.0
void addU16 (Int3 v)

Parameters
v Int3

addU16

added in version 23.0.0
void addU16 (int v)

Parameters
v int

addU16

added in version 23.0.0
void addU16 (Int2 v)

Parameters
v Int2

addU16

added in version 23.0.0
void addU16 (Int4 v)

Parameters
v Int4

addU32

added in version 23.0.0
void addU32 (Long2 v)

Parameters
v Long2

addU32

added in version 23.0.0
void addU32 (Long3 v)

Parameters
v Long3

addU32

added in version 23.0.0
void addU32 (long v)

Parameters
v long

addU32

added in version 23.0.0
void addU32 (Long4 v)

Parameters
v Long4

addU64

added in version 23.0.0
void addU64 (Long4 v)

Parameters
v Long4

addU64

added in version 23.0.0
void addU64 (long v)

Parameters
v long

addU64

added in version 23.0.0
void addU64 (Long3 v)

Parameters
v Long3

addU64

added in version 23.0.0
void addU64 (Long2 v)

Parameters
v Long2

addU8

added in version 23.0.0
void addU8 (Short2 v)

Parameters
v Short2

addU8

added in version 23.0.0
void addU8 (short v)

Parameters
v short

addU8

added in version 23.0.0
void addU8 (Short3 v)

Parameters
v Short3

addU8

added in version 23.0.0
void addU8 (Short4 v)

Parameters
v Short4

align

added in version 23.0.0
void align (int v)

Parameters
v int

getData

added in version 23.0.0
byte[] getData ()

Returns
byte[]

reset

added in version 23.0.0
void reset (int i)

Parameters
i int

reset

added in version 23.0.0
void reset ()

skip

added in version 23.0.0
void skip (int i)

Parameters
i int

subBoolean

added in version 23.0.0
boolean subBoolean ()

Returns
boolean

subByte2

added in version 23.0.0
Byte2 subByte2 ()

Returns
Byte2

subByte3

added in version 23.0.0
Byte3 subByte3 ()

Returns
Byte3

subByte4

added in version 23.0.0
Byte4 subByte4 ()

Returns
Byte4

subDouble2

added in version 23.0.0
Double2 subDouble2 ()

Returns
Double2

subDouble3

added in version 23.0.0
Double3 subDouble3 ()

Returns
Double3

subDouble4

added in version 23.0.0
Double4 subDouble4 ()

Returns
Double4

subF32

added in version 23.0.0
float subF32 ()

Returns
float

subF64

added in version 23.0.0
double subF64 ()

Returns
double

subFloat2

added in version 23.0.0
Float2 subFloat2 ()

Returns
Float2

subFloat3

added in version 23.0.0
Float3 subFloat3 ()

Returns
Float3

subFloat4

added in version 23.0.0
Float4 subFloat4 ()

Returns
Float4

subI16

added in version 23.0.0
short subI16 ()

Returns
short

subI32

added in version 23.0.0
int subI32 ()

Returns
int

subI64

added in version 23.0.0
long subI64 ()

Returns
long

subI8

added in version 23.0.0
byte subI8 ()

Returns
byte

subInt2

added in version 23.0.0
Int2 subInt2 ()

Returns
Int2

subInt3

added in version 23.0.0
Int3 subInt3 ()

Returns
Int3

subInt4

added in version 23.0.0
Int4 subInt4 ()

Returns
Int4

subLong2

added in version 23.0.0
Long2 subLong2 ()

Returns
Long2

subLong3

added in version 23.0.0
Long3 subLong3 ()

Returns
Long3

subLong4

added in version 23.0.0
Long4 subLong4 ()

Returns
Long4

subMatrix2f

added in version 23.0.0
Matrix2f subMatrix2f ()

Returns
Matrix2f

subMatrix3f

added in version 23.0.0
Matrix3f subMatrix3f ()

Returns
Matrix3f

subMatrix4f

added in version 23.0.0
Matrix4f subMatrix4f ()

Returns
Matrix4f

subShort2

added in version 23.0.0
Short2 subShort2 ()

Returns
Short2

subShort3

added in version 23.0.0
Short3 subShort3 ()

Returns
Short3

subShort4

added in version 23.0.0
Short4 subShort4 ()

Returns
Short4

subalign

added in version 23.0.0
void subalign (int v)

Parameters
v int
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.