Minecraft wiki entry for History, associated text: The first 4 bytes of the chunk data which are in little-endian represent its length in bytes. In practice it is always 82180 bytes (chunk data header: 4, actual chunk data: 82176).