[dovecot/core] a9a928: lib: Implemented i_stream_create_copy_from_data().

GitHub noreply at github.com
Fri Aug 12 06:00:12 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: a9a928e40e3b691924c8e5e444e3e1a4320aa3bd
      https://github.com/dovecot/core/commit/a9a928e40e3b691924c8e5e444e3e1a4320aa3bd
  Author: Stephan Bosch <stephan at rename-it.nl>
  Date:   2016-08-12 (Fri, 12 Aug 2016)

  Changed paths:
    M src/lib/istream-data.c
    M src/lib/istream.h

  Log Message:
  -----------
  lib: Implemented i_stream_create_copy_from_data().

Unlike i_stream_create_from_data(), this function makes a copy of the provided data block. This way, the application does not need to worry about keeping it allocated for the lifetime of the stream.
The copied data is allocated durably on the system pool and freed once the stream is destroyed.




More information about the dovecot-cvs mailing list