Table of Contents

Class FloatBinaryWriter

Namespace
DataStax.AstraDB.DataApi.SerDes
Assembly
DataStax.AstraDB.DataApi.dll

Serializes a float array to the Data API binary format: { "$binary": "<base64>" } with big-endian IEEE 754 encoding. Deserializes from either binary or JSON array format.

public class FloatBinaryWriter : FloatArrayJsonConverterBase
Inheritance
FloatBinaryWriter
Inherited Members

Methods

Write(Utf8JsonWriter, float[], JsonSerializerOptions)

Writes a specified value as JSON.

public override void Write(Utf8JsonWriter writer, float[] value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

The writer to write to.

value float[]

The value to convert to JSON.

options JsonSerializerOptions

An object that specifies serialization options to use.