Skip to content

System.Formats.Cbor: Add Reader and Writer methods for System.Half. #38467

Closed
@eiriktsarpalis

Description

@eiriktsarpalis

Background and Motivation

The CBOR spec requires support for IEEE 754 half-precision floats. Given that we just added System.Half, we should expose reader and writer methods that handle that particular type.

Proposed API

public class CborReader
{
    public void WriteHalf(Half value);
}

public class CborWriter
{
    public Half ReadHalf();
}

Relevant implementation PR: #38946

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions