Package org.robolectric.res.android
Class ResourceTypes.ResStringPool_header
- java.lang.Object
-
- org.robolectric.res.android.ResourceTypes.ResStringPool_header
-
- Enclosing class:
- ResourceTypes
public static class ResourceTypes.ResStringPool_header extends Object
Definition for a pool of strings. The data of this chunk is an array of uint32_t providing indices into the pool, relative to stringsStart. At stringsStart are all of the UTF-16 strings concatenated together; each starts with a uint16_t of the string's length and each ends with a 0x0000 terminator. If a string is > 32767 characters, the high bit of the length is set meaning to take those 15 bits as a high word and it will be followed by another uint16_t containing the low word. If styleCount is not zero, then immediately following the array of uint32_t indices into the string table is another array of indices into a style table starting at stylesStart. Each entry in the style table is an array of ResStringPool_span structures.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceTypes.ResStringPool_header.Writer
-
Field Summary
Fields Modifier and Type Field Description static int
SIZEOF
static int
SORTED_FLAG
static int
UTF8_FLAG
-
Constructor Summary
Constructors Constructor Description ResStringPool_header(ByteBuffer buf, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getByte(int i)
int
getShort(int i)
ByteBuffer
myBuf()
int
myOffset()
String
toString()
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
SORTED_FLAG
public static final int SORTED_FLAG
- See Also:
- Constant Field Values
-
UTF8_FLAG
public static final int UTF8_FLAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResStringPool_header
public ResStringPool_header(ByteBuffer buf, int offset)
-
-
Method Detail
-
getByte
public int getByte(int i)
-
getShort
public int getShort(int i)
-
myBuf
public final ByteBuffer myBuf()
-
myOffset
public final int myOffset()
-
-