=heading-link href=#the-implementation><i class="fa-solid fa-link" aria-hidden=true title="Link to heading"></i>
<span class=sr-only>Link to heading</span></a></h2><p>The answer is quite simple: just always say that the entire buffer was filled.
If you don&rsquo;t care about what the data is, you can completely ignore it and just return the length of the given buffer.
Since slices are initialized to their zero value, this is essentially a Go implementation of <a href=https://en.wikipedia.org/wiki//dev/zero 