mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-06 01:55:53 +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 static class Header {
|
||||||
public final short type;
|
public final short type;
|
||||||
|
public final int headerSize;
|
||||||
public final int chunkSize;
|
public final int chunkSize;
|
||||||
|
|
||||||
public Header(short type, int size) {
|
public Header(short type, int headerSize, int chunkSize) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.chunkSize = size;
|
this.headerSize = headerSize;
|
||||||
|
this.chunkSize = chunkSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Header read(ExtDataInput in) throws IOException {
|
public static Header read(ExtDataInput in) throws IOException {
|
||||||
@ -460,10 +462,9 @@ public class ARSCDecoder {
|
|||||||
try {
|
try {
|
||||||
type = in.readShort();
|
type = in.readShort();
|
||||||
} catch (EOFException ex) {
|
} catch (EOFException ex) {
|
||||||
return new Header(TYPE_NONE, 0);
|
return new Header(TYPE_NONE, 0, 0);
|
||||||
}
|
}
|
||||||
in.skipBytes(2);
|
return new Header(type, in.readShort(), in.readInt());
|
||||||
return new Header(type, in.readInt());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static short TYPE_NONE = -1, TYPE_TABLE = 0x0002,
|
public final static short TYPE_NONE = -1, TYPE_TABLE = 0x0002,
|
||||||
|
Loading…
Reference in New Issue
Block a user