3 references to SerializeToUtf8Bytes
Microsoft.Extensions.AI (1)
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
73
var newJson = JsonSerializer.
SerializeToUtf8Bytes
(value, (JsonTypeInfo<TEmbedding>)_jsonSerializerOptions.GetTypeInfo(typeof(TEmbedding)));
System.Memory.Data (1)
System\BinaryData.cs (1)
410
=> new BinaryData(JsonSerializer.
SerializeToUtf8Bytes
(jsonSerializable, jsonTypeInfo), MediaTypeApplicationJson);
System.Text.Json (1)
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (1)
80
/// encoding since the implementation internally uses UTF-8. See also <see cref="
SerializeToUtf8Bytes
{TValue}(TValue, JsonTypeInfo{TValue})"/>