• EntirelyUnlovable@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    10 days ago

    This looks like Go, so I think this would be a 2d array (or slice as Go calls it) of bytes, with starting length 0. Go has an optional 3rd parameter for capacity

    • tetris11@feddit.uk
      link
      fedilink
      English
      arrow-up
      3
      ·
      10 days ago

      Interesting, thanks! I find it weird for it to be assigned to a buffer variable if no initial fixed size is given