booster / com.didiglobal.booster.aapt2 / BinaryParser / <init>

<init>

BinaryParser(buffer: ByteBuffer)
BinaryParser(buffer: ByteArray)

Initialize with the specified buffer

Parameters

buffer - the buffer to parse

BinaryParser(file: File, order: ByteOrder = ByteOrder.LITTLE_ENDIAN)

Initialize with the specified file and byte order

Parameters

file - the file to parse

order - the byte order, default is little endian

BinaryParser(input: InputStream, order: ByteOrder = ByteOrder.LITTLE_ENDIAN)

Initialize with the specified input stream and byte order

Parameters

input - the input stream to parse

order - the byte order, default is little endian