diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/src/gd_io_stream.cxx')
-rw-r--r-- | Build/source/libs/gd/libgd-src/src/gd_io_stream.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Build/source/libs/gd/libgd-src/src/gd_io_stream.cxx b/Build/source/libs/gd/libgd-src/src/gd_io_stream.cxx index 28021afc1ae..0d64c72c2b7 100644 --- a/Build/source/libs/gd/libgd-src/src/gd_io_stream.cxx +++ b/Build/source/libs/gd/libgd-src/src/gd_io_stream.cxx @@ -1,12 +1,11 @@ /* ***************************************************************************** -** $Id$ ** Initial file written and documented by: ** Kevin Shepherd <kshepherd@php.net> December 2007 ** of Scarlet Line http://www.scarletline.com/ *******************************************************************************/ /** \file gd_io_stream.cxx \brief Implementation of the methods of the gdIOCtx std stream specialization. - + Implements the derived specializations of gdIOCtx. These methods are not called by users of libgd, they are internal implementation. @@ -22,7 +21,7 @@ #include "gd_io_stream.h" /** Read into buffer from stream - Return the number of bytes successfully read. + Return the number of bytes successfully read. If an error occurs, or the end-of-file is reached, the return value is a short byte count (or zero). */ @@ -33,7 +32,7 @@ int istreamIOCtx::Getbuf (struct gdIOCtx * ctx, void * buf, int size) return _str->gcount(); } /** Write from buffer to stream - Return the number of bytes successfully written. + Return the number of bytes successfully written. If an error occurs, or the end-of-file is reached, the return value is a short byte count (or zero). */ @@ -58,7 +57,7 @@ void istreamIOCtx::Putchar (struct gdIOCtx * , int ) } /** Seek to position offset from the beginning of the stream - must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! + must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! */ int istreamIOCtx::Seek (struct gdIOCtx * ctx, const int pos) { @@ -82,7 +81,7 @@ void istreamIOCtx::FreeCtx (struct gdIOCtx * ctx) } /** Read into buffer from stream - Return the number of bytes successfully read. + Return the number of bytes successfully read. If an error occurs, or the end-of-file is reached, the return value is a short byte count (or zero). */ @@ -91,7 +90,7 @@ int ostreamIOCtx::Getbuf (struct gdIOCtx * , void * , int ) return 0; } /** Write from buffer to stream - Return the number of bytes successfully written. + Return the number of bytes successfully written. If an error occurs, or the end-of-file is reached, the return value is a short byte count (or zero). */ @@ -119,7 +118,7 @@ void ostreamIOCtx::Putchar (struct gdIOCtx * ctx, int c) } /** Seek to position offset from the beginning of the stream - must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! + must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! */ int ostreamIOCtx::Seek (struct gdIOCtx * ctx, const int pos) { |