Quantcast
Channel: Gemalto Sentinel Customer Discussions
Viewing all articles
Browse latest Browse all 1619

Re : EMS web services: update memory segment

$
0
0
Dear Luke,

I tried with size as 4 and I am able to create an entitlement successfully at my end.

The conversion takes place as follows-
1. We enter the text as "3131". This is a string value
2. Then this string is converted to char array as {3,1,3,1}
3. Then each char is converted to int value: for first value here 3 is converted to 51
    Example from C#-
    int value = Convert.ToInt32(3);
    This gives 51
4. After this, 51 is converted to hexadecimal. This gives "0x33"
5. Same is repeated for all characters in 3131

So following is the data that actually goes in memory-

Character in Input String Hex Value in Memory
3 0x33
1 0x31
3 0x33
1 0x31

That is why we need 4bytes of data to enter "3131".

Please refer to the following screenshots from EMS-



Thanks,
Ashish


Viewing all articles
Browse latest Browse all 1619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>