Skip to content

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

Closed

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

Activity

  1. added this to the 5.0.0 milestone on Jun 26, 2020
  2. added
    untriaged
    on Jun 26, 2020
  3. removed
    untriaged
    on Jun 26, 2020
  4. added
    api-ready-for-review
    on Jul 6, 2020
  5. added
    blocking
    on Jul 8, 2020
  6. added
    api-approved
    and removed
    api-ready-for-review
    blocking
    on Jul 9, 2020
  7. bartonjs commented on Jul 9, 2020

    @bartonjs
    Member

    Approved as proposed.

    public class CborReader
    {
        public void WriteHalf(Half value);
    }
    
    public class CborWriter
    {
        public Half ReadHalf();
    }
  8. ghost locked as resolved and limited conversation to collaborators on Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api-approvedarea-System.Formats.Cbor

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions