Descriptionbufio: improve ReadFrom
Writer.ReadFrom currently uses underlying writer's
ReadFrom method only when internal buffer is empty.
Also, it does not utilize given Reader's WriteTo
method even if it implements WriterTo. It's not
optional.
This patch is to use underlying value's ReadFrom and
WriteTo methods as long as they are available.
Patch Set 1 #Patch Set 2 : diff -r 3ca54dd30864 https://code.google.com/p/go #Patch Set 3 : diff -r 3ca54dd30864 https://code.google.com/p/go #Patch Set 4 : diff -r 3ca54dd30864 https://code.google.com/p/go #
Total comments: 2
Patch Set 5 : code review 79110043: bufio: improve ReadFrom #Patch Set 6 : diff -r c5f72a685e25 https://code.google.com/p/go #Patch Set 7 : diff -r c5f72a685e25 https://code.google.com/p/go #Patch Set 8 : diff -r 8e05add24c7e https://code.google.com/p/go #MessagesTotal messages: 21
|