Skip to content

Undefined function in CBOR library #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tangerino opened this issue Apr 20, 2023 · 3 comments
Open

Undefined function in CBOR library #648

Tangerino opened this issue Apr 20, 2023 · 3 comments
Labels
enhancement Feature requests, new feature implementations

Comments

@Tangerino
Copy link

In CBOR library there are a couple of unidentified functions such as:

unpack_float16

def decode_float16(decoder):
    payload = decoder.read(2)
    return unpack_float16(payload)

and

undefined

special_decoders = {
    20: lambda self: False,
    21: lambda self: True,
    22: lambda self: None,
    23: lambda self: undefined,
    24: decode_simple_value,
    25: decode_float16,
    26: decode_float32,
    27: decode_float64,
    31: lambda self: break_marker,
}
@jimmo
Copy link
Member

jimmo commented Jul 21, 2023

@iabdalkader hi Ibrahim, would you be able to take a look at this? Thanks

@iabdalkader
Copy link
Contributor

It seems it was not implemented in the original library, I have no idea why, but it should be easy to add.

@jonnor
Copy link

jonnor commented Aug 25, 2024

Anyone want to make a MR for this functionality? :)

@jonnor jonnor added the enhancement Feature requests, new feature implementations label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests, new feature implementations
Projects
None yet
Development

No branches or pull requests

4 participants