How many bytes?

View previous topic View next topic Go down

Solved How many bytes?

Post by Lance(HAOH) on Mon 07 Dec 2009, 2:00 pm

Could anyone please explain to me why this uses 32 bytes? Shouldn't 8 bits make 1 byte
and this should make up 16 bytes?

0000000: 0100 4d61 696e 2053 742e 0000 0000 0000 ..Main St.......

0000016: 0000 0000 0000 0000 0000 0000 0000 0000 ................

0000032: 1900 536f 7574 6820 5374 2e00 0000 0000 ..South St......

0000048: 0000 0000 0000 0000 0000 0000 0000 0000 ................

Lance(HAOH)

Rookie Surfer
Rookie Surfer

Posts : 138
Joined : 2008-12-12
Operating System : Windows XP Professional, Windows 7 Enterprise, Windows 8 Professional WMC, Ubuntu Linux

View user profile

Back to top Go down

Solved Re: How many bytes?

Post by skilldegree on Mon 07 Dec 2009, 9:22 pm

Um not 100% sure, but that looks like hex to me. so each individual number would take up 1 byte?

skilldegree

Rookie Surfer
Rookie Surfer

Posts : 55
Joined : 2009-08-17
Operating System : Win7 x64 Ultimate

View user profile

Back to top Go down

Solved Re: How many bytes?

Post by Lance(HAOH) on Tue 08 Dec 2009, 8:27 pm

Yup. The chunk of numbers is hexadecimal view from a hex-editor. But each individual number is called a bit. 8 bits make a byte. But I am confused... The book which I took the sample from wrote that this was a 32 bit string. Could someone please help to clarify my doubts?

Lance(HAOH)

Rookie Surfer
Rookie Surfer

Posts : 138
Joined : 2008-12-12
Operating System : Windows XP Professional, Windows 7 Enterprise, Windows 8 Professional WMC, Ubuntu Linux

View user profile

Back to top Go down

Solved Re: How many bytes?

Post by Doctor Inferno on Tue 08 Dec 2009, 9:11 pm

Hello,

Each hexadecimal digit represents four binary digits also known as bits. So ignoring the equation of 8 bits = 1 bytes, there are 32 bytes as counted. Shown in bold:

0000000: 0100 4d61 696e 2053 742e 0000 0000 0000 ..Main St.......

0000016: 0000 0000 0000 0000 0000 0000 0000 0000 ................

0000032: 1900 536f 7574 6820 5374 2e00 0000 0000 ..South St......

0000048: 0000 0000 0000 0000 0000 0000 0000 0000 ................


Please be a GeekPolice fan on Facebook!



Have we helped you? Help us! | Doctor by day, ninja by night.

Doctor Inferno
The GeekPolice


The GeekPolice

Posts : 12017
Joined : 2007-12-27
Operating System : Windows 7 Home Premium and Ultimate X64

View user profile http://twitter.com/GeekPolice

Back to top Go down

Solved Re: How many bytes?

Post by Lance(HAOH) on Wed 09 Dec 2009, 2:15 pm

Thanks for your help!

Lance(HAOH)

Rookie Surfer
Rookie Surfer

Posts : 138
Joined : 2008-12-12
Operating System : Windows XP Professional, Windows 7 Enterprise, Windows 8 Professional WMC, Ubuntu Linux

View user profile

Back to top Go down

Solved Re: How many bytes?

Post by Doctor Inferno on Wed 09 Dec 2009, 2:41 pm

Glad I could help!


Please be a GeekPolice fan on Facebook!



Have we helped you? Help us! | Doctor by day, ninja by night.

Doctor Inferno
The GeekPolice


The GeekPolice

Posts : 12017
Joined : 2007-12-27
Operating System : Windows 7 Home Premium and Ultimate X64

View user profile http://twitter.com/GeekPolice

Back to top Go down

Solved Re: How many bytes?

Post by Sponsored content Today at 10:58 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum