DescriptionAdd ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without buffer allocation.
Use them in Copy and Copyn.
Speed up ReadFile by using ReadFrom and avoiding Copy altogether (a minor win).
Patch Set 1 #Patch Set 2 : code review 166041: Add ReadFrom and WriteTo methods to bytes.Buffer, to en... #
Total comments: 6
Patch Set 3 : code review 166041: Add ReadFrom and WriteTo methods to bytes.Buffer, to en... #
MessagesTotal messages: 3
|