[ 
https://issues.apache.org/jira/browse/PROTON-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16255968#comment-16255968
 ] 

Alan Conway commented on PROTON-1431:
-------------------------------------

Proton-C doesn't interpret AMQP decimal types, it just presents their IEEE 
encoded bytes which can be passed on but not manipulated.

We could do the same in Go, but we could also provide the option to 
marshal/unmarshal as the Go type math/big.Rat (rational), where the denominator 
is a power of 10. We would need to write the code to encode/decode the IEEE 
decimal encoding ourselves, either in Go or as part of the proton-C library.

> [go] Support marshaling and unmarshaling to/from the decimal{32,64,128} AMQP 
> types in message body
> --------------------------------------------------------------------------------------------------
>
>                 Key: PROTON-1431
>                 URL: https://issues.apache.org/jira/browse/PROTON-1431
>             Project: Qpid Proton
>          Issue Type: New Feature
>          Components: go-binding
>    Affects Versions: proton-c-0.18.0
>            Reporter: Jiri Daněk
>            Assignee: Alan Conway
>            Priority: Minor
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to