2 writes to _dataUri
Microsoft.Extensions.AI.Abstractions (2)
Contents\DataContent.cs (2)
69_dataUri = DataUriParser.Parse(uri.AsMemory()); 80_dataUri = null;
10 references to _dataUri
Microsoft.Extensions.AI.Abstractions (10)
Contents\DataContent.cs (10)
75if (MediaType != _dataUri.MediaType) 79_data = _dataUri.ToByteArray(); 86MediaType = _dataUri.MediaType; 130if (_dataUri is null) 142_uri = _dataUri.IsBase64 ? 144$"data:{MediaType};base64,{_dataUri.Data.Span}" : 145$"data:{MediaType};,{_dataUri.Data.Span}"; 176public bool ContainsData => _dataUri is not null || _data is not null; 189if (_dataUri is not null) 191_data ??= _dataUri.ToByteArray();