Checkout
Ivan Zhakov
committed
on 22 Oct 15
Revv svn_string_from_stream() function and share implementation with
svn_stringbuf_from_stream().

Suggested by: julianf

* subversion/inclu… Show more
Revv svn_string_from_stream() function and share implementation with

svn_stringbuf_from_stream().

Suggested by: julianf

* subversion/include/svn_io.h

 (svn_string_from_stream2): New.

 (svn_string_from_stream): Deprecate.

* subversion/libsvn_subr/stream.c

 (svn_string_from_stream2): Revv from svn_string_from_stream(): add LEN_HINT

  argument. Use svn_stringbuf_from_stream() as implementation.

* subversion/libsvn_subr/deprecated.c

 (svn_string_from_stream): Call svn_string_from_stream2() with LEN_HINT=0.

* subversion/libsvn_fs_x/reps.c

* subversion/libsvn_wc/old-and-busted.c

* tools/dev/x509-parser.c

 (svn_fs_x__reps_add_base, svn_wc__read_entries_old,

  get_der_cert_from_stream): Use svn_string_from_stream2() with

  LEN_HINT=SVN__STREAM_CHUNK_SIZE. It doesn't increase memory usage because

  we use same pool for SCRATCH and RESULT pool.

Show less