add comments

This commit is contained in:
xtaci
2025-12-14 15:23:59 +08:00
parent 8684a3fa1a
commit d3df2cdee1
+2
View File
@@ -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 {