/// <inheritdoc cref="LibCuVideo.ParseVideoData(CuVideoParser, ref CuVideoSourceDataPacket)"/>
        public void ParseVideoData(
            IntPtr payload,
            int payloadLength,
            CuVideoPacketFlags flags = CuVideoPacketFlags.None,
            long timestamp = 0)
        {
            var packet = new CuVideoSourceDataPacket
            {
                Flags = flags,
                Payload = (byte*)payload,
                PayloadSize = (uint)payloadLength,
                Timestamp = timestamp
            };

            ParseVideoData(ref packet);
        }
        /// <inheritdoc cref="LibCuVideo.ParseVideoData(CuVideoParser, ref CuVideoSourceDataPacket)"/>
        public void ParseVideoData(
            Span<byte> payload,
            CuVideoPacketFlags flags = CuVideoPacketFlags.None,
            long timestamp = 0)
        {
            fixed (byte* payloadPtr = payload)
            {
                var packet = new CuVideoSourceDataPacket
                {
                    Flags = flags,
                    Payload = payloadPtr,
                    PayloadSize = (uint)payload.Length,
                    Timestamp = timestamp
                };

                ParseVideoData(ref packet);
            }
        }