0

I have a payload from a client which is a byte* and contains always an integer. I need the value of the payload as an integer. How can I convert this?

byte* payload

to

int value
3
  • 1
    In what form is the integer in your byte array ? Binary or text ? If binary, is it known to be of the correct endianness ? Commented Apr 19, 2018 at 8:24
  • the integer is in text form Commented Apr 19, 2018 at 8:30
  • 1
    And is it null-terminated? If it is, then you're dealing with a string and normal conversion rules apply Commented Apr 19, 2018 at 8:38

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.