如果我正确理解你的问题,这会起作用吗?// func (*Reader) Size() int// Size returns the size of the underlying buffer in bytes.size := r.Size()// func (*Reader) Buffered() int// Buffered returns the number of bytes that can be read from the current bufferbuffered := r.Buffered()