Editor/Embedded/ZstdSharp/Unsafe/ZSTD_inBuffer_s.cs

A small unsafe struct used by the embedded ZstdSharp library, representing an input buffer for streaming decompression. It holds a raw pointer to data (src), the buffer size, and the current read position.

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

    /****************************
     *  Streaming
     ****************************/
    public unsafe struct ZSTD_inBuffer_s
    {
        /**< start of input buffer */
        public void* src;
        /**< size of input buffer */
        public nuint size;
        /**< position where reading stopped. Will be updated. Necessarily 0 <= pos <= size */
        public nuint pos;
    }