From d3df2cdee13a1598104829f14415b8545d604ddc Mon Sep 17 00:00:00 2001 From: xtaci Date: Sun, 14 Dec 2025 15:23:59 +0800 Subject: [PATCH] add comments --- stream.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stream.go b/stream.go index 02bbc71..615e44f 100644 --- a/stream.go +++ b/stream.go @@ -224,6 +224,7 @@ func (s *stream) WriteTo(w io.Writer) (n int64, err error) { } } +// check comments in WriteTo func (s *stream) writeToV1(w io.Writer) (n int64, err error) { for { var pbuf *[]byte @@ -376,6 +377,7 @@ func (s *stream) Write(b []byte) (n int, err error) { } } +// writeV1 writes data to the stream for version 1 streams. func (s *stream) writeV1(b []byte) (n int, err error) { // check empty input if len(b) == 0 {