src/AnvilPacker/Data/NBT.cs
/// <summary> Writes a GZIP compressed tag. </summary>
Writes a GZIP compressed tag.
Writes a GZIP compressed tag .
public static void WriteCompressed(CompoundTag tag, Stream output, bool leaveOpen = true)
        {
            using var dos = new DataWriter(new GZipStream(output, CompressionMode.Compress, leaveOpen));
            Write(tag, dos);
        }
public static void WriteCompressed ( CompoundTag tag , Stream output , bool leaveOpen = true ) { using var dos = new DataWriter ( new GZipStream ( output , CompressionMode . Compress , leaveOpen ) ) ; Write ( tag , dos ) ; }
Writes a GZIP compressed tag.
Writes a GZIP compressed tag .
tag
CompoundTag
output
Stream
leaveOpen
bool