use ::wxInvalidOffset to enable autolinking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,7 +137,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the length of the file.
|
Returns the length of the file.
|
||||||
|
|
||||||
This method may return wxInvalidOffset if the length couldn't be
|
This method may return ::wxInvalidOffset if the length couldn't be
|
||||||
determined or 0 even for non-empty files if the file is not seekable.
|
determined or 0 even for non-empty files if the file is not seekable.
|
||||||
|
|
||||||
In general, the only way to determine if the file for which this function
|
In general, the only way to determine if the file for which this function
|
||||||
@@ -162,7 +162,7 @@ public:
|
|||||||
wxSeekMode mode = wxFromStart);
|
wxSeekMode mode = wxFromStart);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the current position or wxInvalidOffset if file is not opened or
|
Returns the current position or ::wxInvalidOffset if file is not opened or
|
||||||
if another error occurred.
|
if another error occurred.
|
||||||
*/
|
*/
|
||||||
wxFileOffset Tell() const;
|
wxFileOffset Tell() const;
|
||||||
@@ -383,7 +383,7 @@ public:
|
|||||||
@param count
|
@param count
|
||||||
Bytes to read
|
Bytes to read
|
||||||
|
|
||||||
@return The number of bytes read, or the symbol wxInvalidOffset.
|
@return The number of bytes read, or the symbol ::wxInvalidOffset.
|
||||||
*/
|
*/
|
||||||
ssize_t Read(void* buffer, size_t count);
|
ssize_t Read(void* buffer, size_t count);
|
||||||
|
|
||||||
@@ -395,7 +395,7 @@ public:
|
|||||||
@param mode
|
@param mode
|
||||||
One of wxFromStart, wxFromEnd, wxFromCurrent.
|
One of wxFromStart, wxFromEnd, wxFromCurrent.
|
||||||
|
|
||||||
@return The actual offset position achieved, or wxInvalidOffset on
|
@return The actual offset position achieved, or ::wxInvalidOffset on
|
||||||
failure.
|
failure.
|
||||||
*/
|
*/
|
||||||
wxFileOffset Seek(wxFileOffset ofs,
|
wxFileOffset Seek(wxFileOffset ofs,
|
||||||
@@ -409,13 +409,13 @@ public:
|
|||||||
@param ofs
|
@param ofs
|
||||||
Number of bytes before the end of the file.
|
Number of bytes before the end of the file.
|
||||||
|
|
||||||
@return The actual offset position achieved, or wxInvalidOffset on
|
@return The actual offset position achieved, or ::wxInvalidOffset on
|
||||||
failure.
|
failure.
|
||||||
*/
|
*/
|
||||||
wxFileOffset SeekEnd(wxFileOffset ofs = 0);
|
wxFileOffset SeekEnd(wxFileOffset ofs = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the current position or wxInvalidOffset if file is not opened or
|
Returns the current position or ::wxInvalidOffset if file is not opened or
|
||||||
if another error occurred.
|
if another error occurred.
|
||||||
*/
|
*/
|
||||||
wxFileOffset Tell() const;
|
wxFileOffset Tell() const;
|
||||||
|
@@ -117,7 +117,7 @@ public:
|
|||||||
data from the given input stream @a stream.
|
data from the given input stream @a stream.
|
||||||
|
|
||||||
The @a len argument specifies the amount of data to read from the
|
The @a len argument specifies the amount of data to read from the
|
||||||
@a stream. Setting it to @e wxInvalidOffset means that the @a stream
|
@a stream. Setting it to ::wxInvalidOffset means that the @a stream
|
||||||
is to be read entirely (i.e. till the EOF is reached).
|
is to be read entirely (i.e. till the EOF is reached).
|
||||||
*/
|
*/
|
||||||
wxMemoryInputStream(wxInputStream& stream,
|
wxMemoryInputStream(wxInputStream& stream,
|
||||||
|
@@ -313,7 +313,7 @@ public:
|
|||||||
|
|
||||||
@return Upon successful completion, it returns the new offset as
|
@return Upon successful completion, it returns the new offset as
|
||||||
measured in bytes from the beginning of the stream.
|
measured in bytes from the beginning of the stream.
|
||||||
Otherwise, it returns wxInvalidOffset.
|
Otherwise, it returns ::wxInvalidOffset.
|
||||||
*/
|
*/
|
||||||
virtual wxFileOffset Seek(wxFileOffset pos, wxSeekMode mode);
|
virtual wxFileOffset Seek(wxFileOffset pos, wxSeekMode mode);
|
||||||
|
|
||||||
@@ -370,7 +370,7 @@ public:
|
|||||||
the stream.
|
the stream.
|
||||||
|
|
||||||
@return Returns the current position in the stream if possible,
|
@return Returns the current position in the stream if possible,
|
||||||
wxInvalidOffset in the other case.
|
::wxInvalidOffset in the other case.
|
||||||
*/
|
*/
|
||||||
virtual wxFileOffset Tell() const;
|
virtual wxFileOffset Tell() const;
|
||||||
|
|
||||||
@@ -449,7 +449,7 @@ public:
|
|||||||
@param mode
|
@param mode
|
||||||
One of wxFromStart, wxFromEnd, wxFromCurrent.
|
One of wxFromStart, wxFromEnd, wxFromCurrent.
|
||||||
|
|
||||||
@return The new stream position or wxInvalidOffset on error.
|
@return The new stream position or ::wxInvalidOffset on error.
|
||||||
*/
|
*/
|
||||||
virtual wxFileOffset SeekO(wxFileOffset pos, wxSeekMode mode = wxFromStart);
|
virtual wxFileOffset SeekO(wxFileOffset pos, wxSeekMode mode = wxFromStart);
|
||||||
|
|
||||||
@@ -844,7 +844,7 @@ public:
|
|||||||
@param mode
|
@param mode
|
||||||
One of wxFromStart, wxFromEnd, wxFromCurrent.
|
One of wxFromStart, wxFromEnd, wxFromCurrent.
|
||||||
|
|
||||||
@return The new stream position or wxInvalidOffset on error.
|
@return The new stream position or ::wxInvalidOffset on error.
|
||||||
*/
|
*/
|
||||||
virtual wxFileOffset SeekI(wxFileOffset pos, wxSeekMode mode = wxFromStart);
|
virtual wxFileOffset SeekI(wxFileOffset pos, wxSeekMode mode = wxFromStart);
|
||||||
|
|
||||||
@@ -923,7 +923,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the length of the stream in bytes. If the length cannot be
|
Returns the length of the stream in bytes. If the length cannot be
|
||||||
determined (this is always the case for socket streams for example),
|
determined (this is always the case for socket streams for example),
|
||||||
returns @c wxInvalidOffset.
|
returns ::wxInvalidOffset.
|
||||||
|
|
||||||
@since 2.5.4
|
@since 2.5.4
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user