Files
easyjson/buffer
Erik Dubbelboer ce0e78724b Add ReadCloser method to jwriter and buffer
When marshalling something as body for a http.Request we can only use
BuildBytes() which always allocates a buffer for our whole body. This
pull request adds a ReadCloser() method which returns an io.ReadCloser
that can be passed as body into http.NewRequest. This ReadCloser will
read from the existing buffs and putBuf them when they are not needed
anymore.
2017-02-17 16:38:15 +08:00
..