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)
75
if (MediaType !=
_dataUri
.MediaType)
79
_data =
_dataUri
.ToByteArray();
86
MediaType =
_dataUri
.MediaType;
130
if (
_dataUri
is null)
142
_uri =
_dataUri
.IsBase64 ?
144
$"data:{MediaType};base64,{
_dataUri
.Data.Span}" :
145
$"data:{MediaType};,{
_dataUri
.Data.Span}";
176
public bool ContainsData =>
_dataUri
is not null || _data is not null;
189
if (
_dataUri
is not null)
191
_data ??=
_dataUri
.ToByteArray();