How do I calculate the node width in bytes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dseals22
    New Member
    • Jan 2017
    • 74

    How do I calculate the node width in bytes?

    I am trying to figure out how do I calculate the node width in bytes using the picture I have attached below:

    I did show my work as how I calculated the node width in bytes of the picture, but I am not sure if I did it correctly. Any help and online resources would be much appreciated. Thanks! Do you think you can help me @Oralloy?

    [imgnothumb]https://bytes.com/attachments/attachment/9246d1504547507/pic-1.jpg[/imgnothumb]
    Attached Files
    Last edited by Frinavale; Sep 11 '17, 05:53 PM. Reason: Added image for clarification
  • dseals22
    New Member
    • Jan 2017
    • 74

    #2
    I figured out the answer to my question. Basically, you would do the following:

    1 byte= 8 bits so an integer would have 4 bytes and an double would be 2 times as much, so a double would 8 bytes. So to answer my own question, if you add up the width of the entire node in bytes, it would equal 16 bytes.

    Comment

    Working...