In lua,how to get the buffer value.I have to print the value in the value of buffer on console. I have a offset of 2 (2 bytes) and have to print the value of last 10 bits of buffer. Please help me with this. asked 20 Apr '15, 12:50 lakshmi |
One Answer:
You said you have an "offset of 2 (2 bytes)" - do you mean the value you want to get is the last 10 bits of the first and second bytes of the buffer, or do you mean it's the last 10 bits of the 3rd and 4th bytes? Something like this:
answered 30 Jun ‘15, 21:21 Hadriel |