.brarchive
is a simple uncompressed text archive format Bedrock decided to invent for some reason. It stores the contents of a single directory.
The binary format of the file is as follows:
The file begins with a 16-byte header containing metadata.
- 8 bytes: Magic number. Always equals
7d2725b1a0527026
. - 4 bytes: Little-endian integer. Number of entries in the archive.
- 4 bytes: Little-endian integer. Unknown, presumably a version number. Always equals
1
.
The second field of the header describes how many entries there are. Each entry is 256 bytes.
- 1 byte: Length of the entry's name in bytes.
- 247 bytes: Entry's name, padded with
0
bytes. All vanilla usage is ASCII, the encoding may be that or UTF-8. - 4 bytes: Little-endian integer. File contents offset. This is the byte offset into the data block where this entry's contents begins.
- 4 bytes: Little-endian integer. File contents length, in bytes.
Following the entries is the data block, an uninterrupted stream of text. Each entry stores an offset into this stream, and a length. Vanilla contents are encoded in UTF-8.
Where are these
.brarchive
files used?