esa / opengeode

OpenGEODE - a free SDL editor
https://opengeode.net
GNU Lesser General Public License v3.0
69 stars 20 forks source link

I have a question about ASN #45

Closed zongz1024 closed 5 years ago

zongz1024 commented 5 years ago

Do you know how to use ASN syntax to represent long integers(Integer_64)?????

maxime-esa commented 5 years ago

ASN.1 works with ranges, so if you specify a 64 bits range, that's what you will get:

T-Int64 ::= INTEGER (-9223372036854775808 .. 9223372036854775807)

It is better to work with your actual range need.When you generate code, ASN1SCC will use a 64bits integer anyway (or unsigned if you don't have negative values in your range)

zongz1024 commented 5 years ago

ASN.1 works with ranges, so if you specify a 64 bits range, that's what you will get:

T-Int64 ::= INTEGER (-9223372036854775808 .. 9223372036854775807)

It is better to work with your actual range need.When you generate code, ASN1SCC will use a 64bits integer anyway (or unsigned if you don't have negative values in your range)

Ennnnn! How to represent float and double by ASN syntax?????

maxime-esa commented 5 years ago

I think you need to read an introduction to ASN.1. This one is the best: https://www.oss.com/asn1/resources/asn1-made-simple/introduction.html

zongz1024 commented 5 years ago

I think you need to read an introduction to ASN.1. This one is the best: https://www.oss.com/asn1/resources/asn1-made-simple/introduction.html

Thanks for your help! Wish you a good mood every day!