mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-13 06:17:46 +01:00
Add headerSize & chunkSize to Header class
This commit is contained in:
parent
af2f54245b
commit
1e5dc3006e
@ -448,11 +448,13 @@ public class ARSCDecoder {
|
||||
|
||||
public static class Header {
|
||||
public final short type;
|
||||
public final int headerSize;
|
||||
public final int chunkSize;
|
||||
|
||||
public Header(short type, int size) {
|
||||
public Header(short type, int headerSize, int chunkSize) {
|
||||
this.type = type;
|
||||
this.chunkSize = size;
|
||||
this.headerSize = headerSize;
|
||||
this.chunkSize = chunkSize;
|
||||
}
|
||||
|
||||
public static Header read(ExtDataInput in) throws IOException {
|
||||
@ -460,10 +462,9 @@ public class ARSCDecoder {
|
||||
try {
|
||||
type = in.readShort();
|
||||
} catch (EOFException ex) {
|
||||
return new Header(TYPE_NONE, 0);
|
||||
return new Header(TYPE_NONE, 0, 0);
|
||||
}
|
||||
in.skipBytes(2);
|
||||
return new Header(type, in.readInt());
|
||||
return new Header(type, in.readShort(), in.readInt());
|
||||
}
|
||||
|
||||
public final static short TYPE_NONE = -1, TYPE_TABLE = 0x0002,
|
||||
|
Loading…
Reference in New Issue
Block a user