FOSS-VG/resources
BodgeMaster 93fdcb7b65 resources: Add a file with examples for possible dumpnbt output
This may be useful for future unit tests.
I did this because I had no fucking idea how to implement drawing
the tree. I still have no fucking idea.

I hope there are no errors in there. If there are any, we’ll
find out when writing the relevant unit tests.
2022-10-16 07:40:55 +02:00
..
NBT_data resources/NBT_data: Add two files that are valid NBT by our extended spec 2022-10-15 21:41:32 +02:00
unicode_data Resources: Add two files that contain the same data, one being normal UTF-8, the other being Java-style unicode 2022-07-05 19:57:43 +02:00
JavaStringGenerator.java Reoucres: add a Java tool to convert normal strings into Java-style strings 2022-07-05 19:35:37 +02:00
README.md Resources: Add two NBT files that can be used for testing. 2022-08-05 09:12:27 +02:00
all_bytes scripts/test/arraydump: Add test 2022-10-05 06:26:41 +02:00
check_endianness.cpp fix copyright notice 2022-07-02 01:04:32 +02:00
dumpnbt_output_format resources: Add a file with examples for possible dumpnbt output 2022-10-16 07:40:55 +02:00

README.md

Tests

unicode_data/

This directory contains two files with unicode data. One is in Java format, the other is normal UTF-8.

check_endianness.cpp

A simple tool to determine the endianness of the system and write the endianness header for FOSS-VG

Supports: Little Endian, Big Endian, PDP Endian, Honeywell Endian

Note that, while it can detect PDP and Honeywell endianness, the FOSS-VG project itself does not support these.

Usage example: check_endianness > header_file

JavaStringGenerator.java

A simple tool written in Java that takes an input as UTF-8 and outputs it in Java-style UTF-8.

Usage example: echo -ne "\x00" | java JavaStringGenerator > output_file

NBT_data

Data used to test the NBT library.

servers.dat: My current servers.dat as pulled from my Minecraft installation servers.dat_nbt_decoded.txt: The same file manually decoded (I did this to get a better understanding how NBT works, might come in handy in the future.) simple_nbt: A simple NBT file containing all tags nested_compounds_and_lists: A combination of nested compound and list tags intended to be challenging to parse