Converting Endianess Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Advanced Features » Converting Endianess « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Jared Myers
Username: jmyers36

Registered: N/A
Posted on Tuesday, Aug 4, 2009 - 20:27:   

I am compiling a template and I am trying to get the template to change the endianess of the Volume Serial Number.

I have tried both:
little-endian hex 4 and
big-endian hex 4 and neither modifier will change how the data it interpreted.

Can someone tell me if I am doing something wrong or what else I need to try.
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann
Username: admin

Registered: 1-2001
Posted on Tuesday, Aug 4, 2009 - 20:43:   

"hex 4" will show 4 individual bytes in hex, in the order in which they are stored.

Too see a single multi-byte integer number in hex, use
hexadecimal uint32

For such multi-byte integer numbers, you can specify little or big endian.

little-endian hexadecimal uint32
big-endian hexadecimal uint32
Top of pagePrevious messageNext messageBottom of page Link to this message

Jared Myers
Username: jmyers36

Registered: 1-1997
Posted on Wednesday, Aug 5, 2009 - 18:31:   

Thanks...that fixed the issue

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.