Editor/Embedded/ZstdSharp/Unsafe/ZSTD_frameSizeInfo.cs

A small value type from an embedded ZstdSharp binding used in the editor. It stores metadata about a compressed frame: number of blocks, compressed size, and an upper bound for decompressed size.

#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
namespace HumanoidRetargeter.EditorTools.Embedded.ZstdSharp.Unsafe;

    /**
     * Contains the compressed frame size and an upper-bound for the decompressed frame size.
     * Note: before using `compressedSize`, check for errors using ZSTD_isError().
     *       similarly, before using `decompressedBound`, check for errors using:
     *          `decompressedBound != ZSTD_CONTENTSIZE_ERROR`
     */
    public struct ZSTD_frameSizeInfo
    {
        public nuint nbBlocks;
        public nuint compressedSize;
        public ulong decompressedBound;
    }