Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question How do I determine the size a FastBufferWriter needs to be?

Discussion in 'Netcode for GameObjects' started by Senshi, Jan 3, 2022.

  1. Senshi


    Oct 3, 2010
    Hi all,

    Probably a silly question, but just wanna make sure I'm doing this right. Let's say I have an
    containing three ints. Can I simply make the buffer have a size of 12, or do I need to worry about things like struct overhead, or memory alignment?