Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. reading network binary data from LEFT or RIGHT?

reading network binary data from LEFT or RIGHT?

Scheduled Pinned Locked Moved C#
comsysadmindata-structurestutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mmatteson
    wrote on last edited by
    #1

    When i first started to learn about the binary system i always ended up learning that to count in binary you work from right to left. 128,64,32,16,8,4,2,1. But while looking at the Netflow packet 9 format from cisco. (http://www.cisco.com/en/US/tech/tk648/tk362/technologies\_white\_paper09186a00800a3db9.shtml) it shows the field bit positions starting from left to right. [0,1,2,3,4,5,6,7]. how to I align up those bit values? does bit position 7 have a value of 1, or 128? or does this not matter since i am reading my data from a byte array and then i could just use the convert.tostring(2,byte) to view the binary data and the resulting string would be in the format of 128,64,32,16,8,4,2,1? thanks. hopefully i'll figure this out soon so i can get to sleep before 3am like last night!!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups