Ask Your Question

lluc_fn's profile - activity

2023-04-11 23:57:47 +0000 received badge  Notable Question (source)
2022-10-18 06:42:53 +0000 received badge  Popular Question (source)
2022-05-29 09:10:23 +0000 received badge  Popular Question (source)
2021-08-25 08:02:49 +0000 commented answer How to save in a variable a specific value from masked bytes?

Many thanks for your help, it works! Even if that the exactly selected bits are not shown, the solution solved my proble

2021-08-24 08:17:50 +0000 commented question How to save in a variable a specific value from masked bytes?

Let's say that the two bytes are 0x50 and 0x41. 0x50 is byte #77 and 0x41 is byte #78. As is LITTLE-ENDIAN, the bites mo

2021-08-24 08:17:22 +0000 commented question How to save in a variable a specific value from masked bytes?

Let's say that the two bytes are 0x50 and 0x41. 0x50 is byte #77 and 0x41 is byte #78. As is LITTLE-ENDIAN, the bites mo

2021-08-24 08:14:49 +0000 commented question How to save in a variable a specific value from masked bytes?

Let's say that the two bytes are 0x50 and 0x47. 0x50 is byte #77 and 0x41 is byte #78. As is LITTLE-ENDIAN, the bites mo

2021-08-18 07:22:25 +0000 edited question How to save in a variable a specific value from masked bytes?

How to save in a variable a specific value from masked bytes? The variable YEAR, has got an offset of 2000. This means,

2021-08-18 07:21:12 +0000 edited question How to save in a variable a specific value from masked bytes?

How to save in a variable a specific value from masked bytes? The variable YEAR, has got an offset of 2000. This means,

2021-08-18 07:20:08 +0000 edited question How to save in a variable a specific value from masked bytes?

How to save in a variable a specific value from masked bytes? The variable YEAR, has got an offset of 2000. This means,

2021-08-18 07:19:54 +0000 edited question How to save in a variable a specific value from masked bytes?

How to save in a variable a specific value from masked bytes The variable YEAR, has got an offset of 2000. This means, t

2021-08-18 07:18:35 +0000 asked a question How to save in a variable a specific value from masked bytes?

How to save in a variable a specific value from masked bytes The variable YEAR, has got an offset of 2000. This means, t

2021-08-05 08:08:14 +0000 edited question How can I read a Buffer in a Little Endian order?

How can I read a Buffer in a Little Endian order? In LUA, wow could I get the number (integer, float,...) from the follo

2021-08-05 08:04:17 +0000 edited question How can I read a Buffer in a Little Endian order?

How can I read a Buffer in a Little Endian order? How could I get the number (integer, float,...) from the following byt

2021-08-05 08:03:16 +0000 edited question How can I read a Buffer in a Little Endian order?

How can I read a Buffer in a Little Endian order? How could I get the number (integer, float,...) from the following byt

2021-08-05 08:02:52 +0000 asked a question How can I read a Buffer in a Little Endian order?

How can I read a Buffer in a Little Endian order? How could I get the number (integer, float,...) from the following byt

2021-08-05 07:56:33 +0000 marked best answer How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

I am writing my LUA-Code in order to decode a UDP-Payload. I need to read JUST the first 20 bits of the following 3 bytes in a LITTLE-ENDIAN decoding: I tried with the following function: ::subtree:add_le((buffer:range(79, 3):bitfield(0, 20)):le_uint()) But I get this error:

::Lua Error: ...oftware\WiresharkPortable\App\Wireshark\diagnose_118.lua:94: attempt to index a number value

The bytes seen in the payload of the UDP-Message may be the following:

BIG-ENDIAN -->FF 35 50
LITTLE-ENDIAN -->50 35 FF
The hexadecimal-data interesting for me is --> 0 35 FF --> 0000 0011 0101 1111 1111

The problem appears when I introduce the function bitfield - I cannot avoid it as I just want the first 20 bits and not the whole 24. Do you know another different way to fulfill my purpose? Many thanks in advance! :)

2021-08-05 07:56:33 +0000 received badge  Scholar (source)
2021-08-04 09:02:05 +0000 commented answer How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

Many thanks for your help, it worked! Now I got the following question. How could I get the number (integer, float,...)

2021-08-04 09:01:44 +0000 commented answer How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

Many thanks for your help, it worked! Now I got the following question. How could I get the number (integer, float,...)

2021-08-04 09:00:04 +0000 commented answer How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

Many thanks for your help, it worked! Now I got the following question. How could I get the number (integer, float,...)

2021-08-04 08:59:34 +0000 commented answer How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

Many thanks for your help, it worked! Now I got the following question. How could I get the number (integer, float,...)

2021-08-04 08:59:26 +0000 edited answer How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

Many thanks for your help, it worked! Now I got the following question. How could I get the number (integer, float,...)

2021-08-04 08:59:07 +0000 edited answer How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

Many thanks for your help, it worked! Now I got the following question. How could I get the number (integer, float,...)

2021-08-04 08:57:15 +0000 received badge  Editor (source)
2021-08-04 08:57:15 +0000 edited answer How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

Many thanks for your help, it worked! Now I got the following question. How could I get the number (integer, float,...)

2021-08-04 08:56:39 +0000 received badge  Rapid Responder (source)
2021-08-04 08:56:39 +0000 answered a question How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

Many thanks for your help, it worked! Now I got the following question. How could I get the number (integer, float,...)

2021-08-02 15:59:04 +0000 asked a question How to get 20 of 24 bits in a LITTLE-ENDIAN Coding?

How to get 20 of 24 bits in a LITTLE-ENDIAN Coding? I am writing my LUA-Code in order to decode a UDP-Payload. I need to