os/kernelhwsrv/userlibandfileserver/fileserver/inc/f32file64.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// f32\inc\f32file64.inl
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
/**
sl@0
    19
 
sl@0
    20
 Reads from the file at the current position.
sl@0
    21
 
sl@0
    22
 This is a synchronous function.
sl@0
    23
 
sl@0
    24
 Note that when an attempt is made to read beyond the end of the file,
sl@0
    25
 no error is returned. 
sl@0
    26
 The descriptor's length is set to the number of bytes read into 
sl@0
    27
 it. Therefore, when reading through a file,the end of file has been reached 
sl@0
    28
 when the descriptor length, as returned by TDesC8::Length(), is zero.
sl@0
    29
 
sl@0
    30
 @param aDes Descriptor into which binary data is read. Any existing contents 
sl@0
    31
 are overwritten. On return, its length is set to the number of
sl@0
    32
 bytes read.
sl@0
    33
 @return KErrNone if successful, otherwise one of the other system-wide error 
sl@0
    34
 codes.
sl@0
    35
 
sl@0
    36
 @see TDesC8::Length
sl@0
    37
*/
sl@0
    38
inline TInt RFile64::Read(TDes8& aDes) const
sl@0
    39
	{return RFile::Read(aDes);}
sl@0
    40
sl@0
    41
/**
sl@0
    42
Reads from the file at the current position.
sl@0
    43
sl@0
    44
This is an asynchronous function.
sl@0
    45
sl@0
    46
Note that when an attempt is made to read beyond the end of the file,
sl@0
    47
no error is returned. 
sl@0
    48
The descriptor's length is set to the number of bytes read into 
sl@0
    49
it. Therefore, when reading through a file,the end of file has been reached 
sl@0
    50
when the descriptor length, as returned by TDesC8::Length(), is zero.
sl@0
    51
sl@0
    52
@param aDes    Descriptor into which binary data is read. Any existing contents 
sl@0
    53
               are overwritten. On return, its length is set to the number of
sl@0
    54
               bytes read.
sl@0
    55
               NB: this function is asynchronous and the request that it
sl@0
    56
               represents may not complete until some time after the call
sl@0
    57
               to the function has returned. It is important, therefore, that
sl@0
    58
               this descriptor remain valid, or remain in scope, until you have
sl@0
    59
               been notified that the request is complete.
sl@0
    60
               
sl@0
    61
@param aStatus Request status. On completion contains:
sl@0
    62
       KErrNone, if successful, otherwise one of the other system-wide error codes.
sl@0
    63
sl@0
    64
@see TDesC8::Length       
sl@0
    65
*/
sl@0
    66
inline void RFile64::Read(TDes8& aDes,TRequestStatus& aStatus) const
sl@0
    67
	{RFile::Read(aDes, aStatus);}
sl@0
    68
sl@0
    69
/**
sl@0
    70
Reads the specified number of bytes of binary data from the file at the current position.
sl@0
    71
sl@0
    72
This is a synchronous function.
sl@0
    73
sl@0
    74
Note that when an attempt is made to read beyond the end of the file,
sl@0
    75
no error is returned. 
sl@0
    76
The descriptor's length is set to the number of bytes read into 
sl@0
    77
it. Therefore, when reading through a file,the end of file has been reached 
sl@0
    78
when the descriptor length, as returned by TDesC8::Length(), is zero.
sl@0
    79
Assuming aLength is less than the maximum length of the descriptor, the only circumstance 
sl@0
    80
in which Read() can return fewer bytes than requested, is when the end of 
sl@0
    81
file is reached or if an error occurs.
sl@0
    82
sl@0
    83
@param aDes    Descriptor into which binary data is read. Any existing
sl@0
    84
               contents are overwritten. On return, its length is set to
sl@0
    85
               the number of bytes read.
sl@0
    86
            
sl@0
    87
@param aLength The number of bytes to be read from the file into the descriptor. 
sl@0
    88
               If an attempt is made to read more bytes than the descriptor's 
sl@0
    89
               maximum length, the function returns KErrOverflow.
sl@0
    90
               This value must not be negative, otherwise the function
sl@0
    91
               returns KErrArgument.
sl@0
    92
               
sl@0
    93
@return KErrNone if successful, otherwise one of the other system-wide error
sl@0
    94
        codes.
sl@0
    95
*/
sl@0
    96
inline TInt RFile64::Read(TDes8& aDes,TInt aLength) const
sl@0
    97
	{return RFile::Read(aDes, aLength);}
sl@0
    98
sl@0
    99
/**
sl@0
   100
Reads a specified number of bytes of binary data from the file at the current position.
sl@0
   101
sl@0
   102
This is an asynchronous function.
sl@0
   103
sl@0
   104
Note that when an attempt is made to read beyond the end of the file,
sl@0
   105
no error is returned. 
sl@0
   106
The descriptor's length is set to the number of bytes read into it.
sl@0
   107
Therefore, when reading through a file, the end of file has been reached 
sl@0
   108
when the descriptor length, as returned by TDesC8::Length(), is zero.
sl@0
   109
Assuming aLength is less than the maximum length of the descriptor, the only
sl@0
   110
circumstances in which Read() can return fewer bytes than requested is when
sl@0
   111
the end of file is reached or if an error has occurred.
sl@0
   112
sl@0
   113
@param aDes    Descriptor into which binary data is read. Any existing
sl@0
   114
               contents are overwritten. On return, its length is set to the
sl@0
   115
               number of bytes read.
sl@0
   116
               NB: this function is asynchronous and the request that it
sl@0
   117
               represents may not complete until some time after the call
sl@0
   118
               to the function has returned. It is important, therefore, that
sl@0
   119
               this descriptor remain valid, or remain in scope, until you have
sl@0
   120
               been notified that the request is complete.
sl@0
   121
               
sl@0
   122
@param aLength The number of bytes to be read from the file into the descriptor. 
sl@0
   123
               If an attempt is made to read more bytes than the descriptor's
sl@0
   124
               maximum length, then the function updates aStatus parameter with KErrOverflow.
sl@0
   125
               It must not be negative otherwise the function updates aStatus with KErrArgument.
sl@0
   126
               
sl@0
   127
@param aStatus Request status. On completion contains KErrNone if successful, 
sl@0
   128
               otherwise one of the other system-wide error codes.
sl@0
   129
*/
sl@0
   130
inline void RFile64::Read(TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const
sl@0
   131
	{ RFile::Read( aDes, aLength, aStatus);}
sl@0
   132
sl@0
   133
/**
sl@0
   134
Writes to the file at the current offset within the file.
sl@0
   135
sl@0
   136
This is a synchronous function.
sl@0
   137
sl@0
   138
@param aDes The descriptor from which binary data is written.
sl@0
   139
            The function writes the entire contents of aDes to the file.
sl@0
   140
sl@0
   141
@return KErrNone if successful, otherwise one of the other system-wide error 
sl@0
   142
        codes.
sl@0
   143
*/
sl@0
   144
inline TInt RFile64::Write(const TDesC8& aDes)
sl@0
   145
	{return RFile::Write(aDes);}
sl@0
   146
sl@0
   147
sl@0
   148
/** 
sl@0
   149
Writes to the file at the current offset within the file.
sl@0
   150
sl@0
   151
This is an asynchronous function.
sl@0
   152
sl@0
   153
@param aDes    The descriptor from which binary data is written.
sl@0
   154
               The function writes the entire contents of aDes to the file.
sl@0
   155
               NB: this function is asynchronous and the request that it
sl@0
   156
               represents may not complete until some time after the call
sl@0
   157
               to the function has returned. It is important, therefore, that
sl@0
   158
               this descriptor remain valid, or remain in scope, until you have
sl@0
   159
               been notified that the request is complete.
sl@0
   160
            
sl@0
   161
@param aStatus Request status. On completion contains KErrNone if successful, 
sl@0
   162
               otherwise one of the other system-wide error codes.
sl@0
   163
*/
sl@0
   164
inline void RFile64::Write(const TDesC8& aDes,TRequestStatus& aStatus)
sl@0
   165
	{RFile::Write(aDes, aStatus);}
sl@0
   166
sl@0
   167
sl@0
   168
/**
sl@0
   169
Writes a portion of a descriptor to the file at the current offset within
sl@0
   170
the file.
sl@0
   171
sl@0
   172
This is a synchronous function.
sl@0
   173
sl@0
   174
@param aDes    The descriptor from which binary data is written.
sl@0
   175
@param aLength The number of bytes to be written from the descriptor.
sl@0
   176
               This must not be greater than the length of the descriptor.
sl@0
   177
               It must not be negative.
sl@0
   178
sl@0
   179
@return KErrNone if successful; KErrArgument if aLength is negative;
sl@0
   180
		otherwise one of the other system-wide error codes.
sl@0
   181
        
sl@0
   182
@panic FSCLIENT 27 in debug mode, if aLength is greater than the length
sl@0
   183
       of the descriptor aDes.  
sl@0
   184
*/
sl@0
   185
inline TInt RFile64::Write(const TDesC8& aDes,TInt aLength)
sl@0
   186
	{return RFile::Write(aDes, aLength);}
sl@0
   187
sl@0
   188
sl@0
   189
/**
sl@0
   190
Writes a portion of a descriptor to the file at the current offset
sl@0
   191
within the file.
sl@0
   192
sl@0
   193
This is an asynchronous function.
sl@0
   194
sl@0
   195
@param aDes    The descriptor from which binary data is written.
sl@0
   196
               NB: this function is asynchronous and the request that it
sl@0
   197
               represents may not complete until some time after the call
sl@0
   198
               to the function has returned. It is important, therefore, that
sl@0
   199
               this descriptor remain valid, or remain in scope, until you have
sl@0
   200
               been notified that the request is complete.
sl@0
   201
sl@0
   202
@param aLength The number of bytes to be written from the descriptor.
sl@0
   203
               This must not be greater than the length of the descriptor.
sl@0
   204
               It must not be negative.
sl@0
   205
sl@0
   206
@param aStatus Request status. On completion contains KErrNone if successful; 
sl@0
   207
			   KErrArgument if aLength is negative; 
sl@0
   208
			   otherwise one of the other system-wide error codes.
sl@0
   209
*/
sl@0
   210
inline void RFile64::Write(const TDesC8& aDes,TInt aLength,TRequestStatus& aStatus)
sl@0
   211
	{RFile::Write(aDes, aLength, aStatus);}
sl@0
   212
sl@0
   213
/**
sl@0
   214
Reads from the file at the specified offset within the file
sl@0
   215
sl@0
   216
This is a synchronous function.
sl@0
   217
sl@0
   218
Note that when an attempt is made to read beyond the end of the file,
sl@0
   219
no error is returned. 
sl@0
   220
The descriptor's length is set to the number of bytes read into it.
sl@0
   221
Therefore, when reading through a file, the end of file has been reached 
sl@0
   222
when the descriptor length, as returned by TDesC8::Length(), is zero.
sl@0
   223
sl@0
   224
Note:
sl@0
   225
1. This function over-rides the base class function RFile::Read 
sl@0
   226
   and inlines the base class RFile::Read.
sl@0
   227
2. The difference is that this function can read beyond 2GB - 1 when
sl@0
   228
   aPos + length of aDes is beyond 2GB - 1.
sl@0
   229
3. This function is protected using _F32_STRICT_64_BIT_MIGRATION macro 
sl@0
   230
   to help migration to 64 bit file addressing. When the macro is defined, 
sl@0
   231
   this function becomes a private overload and hence use of 
sl@0
   232
   TInt RFile64::Read(TInt64 aPos,TDes8& aDes) const is recommended.
sl@0
   233
sl@0
   234
@see TInt RFile::Read(TInt aPos,TDes8& aDes) const
sl@0
   235
@see TInt RFile64::Read(TInt64 aPos,TDes8& aDes) const
sl@0
   236
sl@0
   237
@param aPos Position of first byte to be read.  This is an offset from
sl@0
   238
            the start of the file. If no position is specified, reading
sl@0
   239
            begins at the current file position. 
sl@0
   240
            If aPos is beyond the end of the file, the function returns
sl@0
   241
            a zero length descriptor.
sl@0
   242
            
sl@0
   243
@param aDes The descriptor into which binary data is read. Any existing content
sl@0
   244
            is overwritten. On return, its length is set to the number of
sl@0
   245
            bytes read.
sl@0
   246
            
sl@0
   247
@return KErrNone if successful, otherwise one of the other system-wide error 
sl@0
   248
        codes.
sl@0
   249
sl@0
   250
@panic FSCLIENT 19 if aPos is negative.
sl@0
   251
*/
sl@0
   252
sl@0
   253
inline TInt RFile64::Read(TInt aPos,TDes8& aDes) const
sl@0
   254
	{return RFile::Read(aPos, aDes);}
sl@0
   255
sl@0
   256
/**
sl@0
   257
Reads from the file at the specified offset within the file.
sl@0
   258
sl@0
   259
This is an asynchronous function.
sl@0
   260
sl@0
   261
Note that when an attempt is made to read beyond the end of the file,
sl@0
   262
no error is returned. 
sl@0
   263
The descriptor's length is set to the number of bytes read into it.
sl@0
   264
Therefore, when reading through a file, the end of file has been reached 
sl@0
   265
when the descriptor length, as returned by TDesC8::Length(), is zero.
sl@0
   266
sl@0
   267
Note:
sl@0
   268
1. This function over-rides the base class function RFile::Read 
sl@0
   269
   and inlines the base class RFile::Read.
sl@0
   270
2. The difference is that this function can read beyond 2GB - 1 when
sl@0
   271
   aPos + length of aDes is beyond 2GB - 1.
sl@0
   272
3. This function is protected using _F32_STRICT_64_BIT_MIGRATION macro 
sl@0
   273
   to help migration to 64 bit file addressing. When the macro is defined, 
sl@0
   274
   this function becomes a private overload and hence use of 
sl@0
   275
   void RFile64::Read(TInt64 aPos,TDes8& aDes,TRequestStatus& aStatus) const is recommended.
sl@0
   276
sl@0
   277
@see void RFile::Read(TInt aPos,TDes8& aDes,TRequestStatus& aStatus) const
sl@0
   278
@see void RFile64::Read(TInt64 aPos,TDes8& aDes,TRequestStatus& aStatus) const
sl@0
   279
sl@0
   280
@param aPos    Position of first byte to be read. This is an offset from
sl@0
   281
               the start of the file. If no position is specified, 
sl@0
   282
               reading begins at the current file position.
sl@0
   283
               If aPos is beyond the end of the file, the function returns
sl@0
   284
               a zero length descriptor.
sl@0
   285
               
sl@0
   286
@param aDes    The descriptor into which binary data is read. Any existing
sl@0
   287
               content is overwritten. On return, its length is set to
sl@0
   288
               the number of bytes read.
sl@0
   289
               NB: this function is asynchronous and the request that it
sl@0
   290
               represents may not complete until some time after the call
sl@0
   291
               to the function has returned. It is important, therefore, that
sl@0
   292
               this descriptor remain valid, or remain in scope, until you have
sl@0
   293
               been notified that the request is complete.
sl@0
   294
               
sl@0
   295
@param aStatus The request status. On completion, contains an error code of KErrNone 
sl@0
   296
               if successful, otherwise one of the other system-wide error codes.
sl@0
   297
sl@0
   298
@panic FSCLIENT 19 if aPos is negative.        
sl@0
   299
*/
sl@0
   300
inline void RFile64::Read(TInt aPos,TDes8& aDes,TRequestStatus& aStatus) const
sl@0
   301
	{RFile::Read(aPos, aDes, aStatus);}
sl@0
   302
sl@0
   303
/**
sl@0
   304
Reads the specified number of bytes of binary data from the file at a specified 
sl@0
   305
offset within the file.
sl@0
   306
sl@0
   307
This is a synchronous function.
sl@0
   308
sl@0
   309
Note that when an attempt is made to read beyond the end of the file,
sl@0
   310
no error is returned. 
sl@0
   311
The descriptor's length is set to the number of bytes read into it.
sl@0
   312
Therefore, when reading through a file, the end of file has been reached 
sl@0
   313
when the descriptor length, as returned by TDesC8::Length(), is zero.
sl@0
   314
Assuming aLength is less than the maximum length of the descriptor, the only
sl@0
   315
circumstances in which Read() can return fewer bytes than requested is when
sl@0
   316
the end of file is reached or if an error has occurred.
sl@0
   317
sl@0
   318
Note:
sl@0
   319
1. This function over-rides the base class function RFile::Read 
sl@0
   320
   and inlines the base class RFile::Read.
sl@0
   321
2. The difference is that this function can read beyond 2GB - 1 when
sl@0
   322
   aPos + aLength is beyond 2GB - 1.
sl@0
   323
3. This function is protected using _F32_STRICT_64_BIT_MIGRATION macro 
sl@0
   324
   to help migration to 64 bit file addressing. When the macro is defined, 
sl@0
   325
   this function becomes a private overload and hence use of 
sl@0
   326
   TInt RFile64::Read(TInt64 aPos,TDes8& aDes,TInt aLength) const is recommended.
sl@0
   327
sl@0
   328
@see TInt RFile::Read(TInt aPos,TDes8& aDes,TInt aLength) const
sl@0
   329
@see TInt RFile64::Read(TInt64 aPos,TDes8& aDes,TInt aLength) const
sl@0
   330
sl@0
   331
@param aPos    Position of first byte to be read. This is an offset from
sl@0
   332
               the start of the file. If no position is specified, 
sl@0
   333
               reading begins at the current file position.
sl@0
   334
               If aPos is beyond the end of the file, the function returns
sl@0
   335
               a zero length descriptor.
sl@0
   336
               
sl@0
   337
@param aDes    The descriptor into which binary data is read. Any existing
sl@0
   338
               contents are overwritten. On return, its length is set to
sl@0
   339
               the number of bytes read.
sl@0
   340
@param aLength The number of bytes to read from the file into the descriptor. 
sl@0
   341
               If an attempt is made to read more bytes than the descriptor's
sl@0
   342
               maximum length, then the function updates aStatus parameter with KErrOverflow.
sl@0
   343
               It must not be negative otherwise the function updates aStatus with KErrArgument.
sl@0
   344
               
sl@0
   345
@return KErrNone if successful, otherwise one of the other system-wide
sl@0
   346
        error codes.
sl@0
   347
sl@0
   348
@panic FSCLIENT 19 if aPos is negative.        
sl@0
   349
*/
sl@0
   350
inline TInt RFile64::Read(TInt aPos,TDes8& aDes,TInt aLength) const
sl@0
   351
	{return RFile::Read(aPos, aDes, aLength);}
sl@0
   352
sl@0
   353
/**
sl@0
   354
Reads the specified number of bytes of binary data from the file at a specified 
sl@0
   355
offset within the file.
sl@0
   356
sl@0
   357
This is an asynchronous function.
sl@0
   358
sl@0
   359
sl@0
   360
Note that when an attempt is made to read beyond the end of the file,
sl@0
   361
no error is returned. 
sl@0
   362
The descriptor's length is set to the number of bytes read into it.
sl@0
   363
Therefore, when reading through a file, the end of file has been reached 
sl@0
   364
when the descriptor length, as returned by TDesC8::Length(), is zero.
sl@0
   365
Assuming aLength is less than the maximum length of the descriptor, the only
sl@0
   366
circumstances in which Read() can return fewer bytes than requested is when
sl@0
   367
the end of file is reached or if an error has occurred.
sl@0
   368
sl@0
   369
Note:
sl@0
   370
1. This function over-rides the base class function RFile::Read 
sl@0
   371
   and inlines the base class RFile::Read.
sl@0
   372
2. The difference is that this function can read beyond 2GB - 1 when
sl@0
   373
   aPos + aLength is beyond 2GB - 1.
sl@0
   374
3. This function is protected using _F32_STRICT_64_BIT_MIGRATION macro 
sl@0
   375
   to help migration to 64 bit file addressing. When the macro is defined, 
sl@0
   376
   this function becomes a private overload and hence use of 
sl@0
   377
   void RFile64::Read(TInt64 aPos,TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const is recommended.
sl@0
   378
sl@0
   379
@see void RFile::Read(TInt aPos,TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const
sl@0
   380
@see void RFile64::Read(TInt64 aPos,TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const
sl@0
   381
sl@0
   382
@param aPos    Position of first byte to be read. This is an offset from
sl@0
   383
               the start of the file. If no position is specified, 
sl@0
   384
               reading begins at the current file position.
sl@0
   385
               If aPos is beyond the end of the file, the function returns
sl@0
   386
               a zero length descriptor.
sl@0
   387
               
sl@0
   388
@param aDes    The descriptor into which binary data is read. Any existing
sl@0
   389
               contents are overwritten. On return, its length is set to
sl@0
   390
               the number of bytes read.
sl@0
   391
               NB: this function is asynchronous and the request that it
sl@0
   392
               represents may not complete until some time after the call
sl@0
   393
               to the function has returned. It is important, therefore, that
sl@0
   394
               this descriptor remain valid, or remain in scope, until you have
sl@0
   395
               been notified that the request is complete.
sl@0
   396
sl@0
   397
@param aLength The number of bytes to read from the file into the descriptor. 
sl@0
   398
               If an attempt is made to read more bytes than the descriptor's
sl@0
   399
               maximum length, then the function returns KErrOverflow.
sl@0
   400
               It must not be negative otherwise the function returns KErrArgument.
sl@0
   401
sl@0
   402
@param aStatus Request status. On completion contains KErrNone if successful, 
sl@0
   403
               otherwise one of the other system-wide error codes.
sl@0
   404
               
sl@0
   405
@panic FSCLIENT 19 if aPos is negative.                       
sl@0
   406
*/
sl@0
   407
inline void RFile64::Read(TInt aPos,TDes8& aDes,TInt aLength,TRequestStatus& aStatus) const
sl@0
   408
	{ RFile::Read(aPos, aDes, aLength, aStatus);}
sl@0
   409
sl@0
   410
/**
sl@0
   411
Writes to the file at the specified offset within the file
sl@0
   412
sl@0
   413
This is a synchronous function.
sl@0
   414
sl@0
   415
Note:
sl@0
   416
1. This function over-rides the base class function RFile::Write 
sl@0
   417
   and inlines the base class RFile::Write.
sl@0
   418
2. The difference is that this function can write beyond 2GB - 1 when
sl@0
   419
   aPos + length of aDes is beyond 2GB - 1.
sl@0
   420
3. This function is protected using _F32_STRICT_64_BIT_MIGRATION macro 
sl@0
   421
   to help migration to 64 bit file addressing. When the macro is defined, 
sl@0
   422
   this function becomes a private overload and hence use of 
sl@0
   423
   TInt RFile64::Write(TInt64 aPos,const TDesC8& aDes) is recommended.
sl@0
   424
sl@0
   425
@see TInt RFile::Write(TInt aPos,const TDesC8& aDes)
sl@0
   426
@see TInt RFile64::Write(TInt64 aPos,const TDesC8& aDes) 
sl@0
   427
sl@0
   428
@param aPos The offset from the start of the file at which the first
sl@0
   429
            byte is written. 
sl@0
   430
            If a position beyond the end of the file is specified, then
sl@0
   431
            the write operation begins at the end of the file.
sl@0
   432
            If the position has been locked, then the write fails.
sl@0
   433
            
sl@0
   434
@param aDes The descriptor from which binary data is written. The function writes 
sl@0
   435
            the entire contents of aDes to the file.
sl@0
   436
            
sl@0
   437
@return KErrNone if successful, otherwise one of the other system-wide error
sl@0
   438
        codes.
sl@0
   439
sl@0
   440
@panic FSCLIENT 19 if aPos is negative.                       
sl@0
   441
*/
sl@0
   442
inline TInt RFile64::Write(TInt aPos,const TDesC8& aDes)
sl@0
   443
	{return RFile::Write( aPos, aDes);}
sl@0
   444
sl@0
   445
/**
sl@0
   446
Writes to the file at the specified offset within the file
sl@0
   447
sl@0
   448
This is an asynchronous function.
sl@0
   449
sl@0
   450
Note:
sl@0
   451
1. This function over-rides the base class function RFile::Write 
sl@0
   452
   and inlines the base class RFile::Write.
sl@0
   453
2. The difference is that this function can write beyond 2GB - 1 when
sl@0
   454
   aPos + length of aDes is beyond 2GB - 1.
sl@0
   455
3. This function is protected using _F32_STRICT_64_BIT_MIGRATION macro 
sl@0
   456
   to help migration to 64 bit file addressing. When the macro is defined, 
sl@0
   457
   this function becomes a private overload and hence use of 
sl@0
   458
   void RFile64::Write(TInt64 aPos,const TDesC8& aDes,TRequestStatus& aStatus) is recommended.
sl@0
   459
sl@0
   460
@see void RFile::Write(TInt aPos,const TDesC8& aDes,TRequestStatus& aStatus)
sl@0
   461
@see void RFile64::Write(TInt64 aPos,const TDesC8& aDes,TRequestStatus& aStatus)
sl@0
   462
sl@0
   463
@param aPos    The offset from the start of the file at which the first
sl@0
   464
               byte is written. 
sl@0
   465
               If a position beyond the end of the file is specified, then
sl@0
   466
               the write operation begins at the end of the file.
sl@0
   467
               If the position has been locked, then the write fails.
sl@0
   468
               
sl@0
   469
@param aDes    The descriptor from which binary data is written. The function
sl@0
   470
               writes the entire contents of aDes to the file.
sl@0
   471
               NB: this function is asynchronous and the request that it
sl@0
   472
               represents may not complete until some time after the call
sl@0
   473
               to the function has returned. It is important, therefore, that
sl@0
   474
               this descriptor remain valid, or remain in scope, until you have
sl@0
   475
               been notified that the request is complete.
sl@0
   476
sl@0
   477
@param aStatus Request status. On completion contains KErrNone if successful, 
sl@0
   478
               otherwise one of the other system-wide error codes.
sl@0
   479
sl@0
   480
@panic FSCLIENT 19 if aPos is negative.                       
sl@0
   481
*/
sl@0
   482
inline void RFile64::Write(TInt aPos,const TDesC8& aDes,TRequestStatus& aStatus)
sl@0
   483
	{RFile::Write(aPos, aDes, aStatus);}
sl@0
   484
sl@0
   485
/**
sl@0
   486
Writes the specified number of bytes to the file at the specified offset within the file.
sl@0
   487
sl@0
   488
This is a synchronous function.
sl@0
   489
sl@0
   490
Note:
sl@0
   491
1. This function over-rides the base class function RFile::Write 
sl@0
   492
   and inlines the base class RFile::Write.
sl@0
   493
2. The difference is that this function can write beyond 2GB - 1 when
sl@0
   494
   aPos + aLength is beyond 2GB - 1.
sl@0
   495
3. This function is protected using _F32_STRICT_64_BIT_MIGRATION macro 
sl@0
   496
   to help migration to 64 bit file addressing. When the macro is defined, 
sl@0
   497
   this function becomes a private overload and hence use of 
sl@0
   498
   TInt RFile64::Write(TInt64 aPos,const TDesC8& aDes,TInt aLength) is recommended.
sl@0
   499
sl@0
   500
@see TInt RFile::Write(TInt aPos,const TDesC8& aDes,TInt aLength)
sl@0
   501
@see TInt RFile64::Write(TInt64 aPos,const TDesC8& aDes,TInt aLength)
sl@0
   502
sl@0
   503
@param aPos    The offset from the start of the file at which the first
sl@0
   504
               byte is written. 
sl@0
   505
               If a position beyond the end of the file is specified, then
sl@0
   506
               the write operation begins at the end of the file.
sl@0
   507
               If the position has been locked, then the write fails.
sl@0
   508
                             
sl@0
   509
@param aDes    The descriptor from which binary data is written.
sl@0
   510
@param aLength The number of bytes to be written from aDes .
sl@0
   511
			   It must not be negative.
sl@0
   512
sl@0
   513
@return KErrNone if successful; KErrArgument if aLength is negative;
sl@0
   514
		otherwise one of the other system-wide error codes.
sl@0
   515
        
sl@0
   516
@panic FSCLIENT 19 if aPos is negative.                       
sl@0
   517
*/
sl@0
   518
inline TInt RFile64::Write(TInt aPos,const TDesC8& aDes,TInt aLength)
sl@0
   519
	{return RFile::Write(aPos, aDes, aLength);}
sl@0
   520
sl@0
   521
/**
sl@0
   522
Writes the specified number of bytes to the file at the specified offset within the file.
sl@0
   523
sl@0
   524
This is an asynchronous function.
sl@0
   525
sl@0
   526
Note:
sl@0
   527
1. This function over-rides the base class function RFile::Write 
sl@0
   528
   and inlines the base class RFile::Write.
sl@0
   529
2. The difference is that this function can write beyond 2GB - 1 when
sl@0
   530
   aPos + aLength is beyond 2GB - 1.
sl@0
   531
3. This function is protected using _F32_STRICT_64_BIT_MIGRATION macro 
sl@0
   532
   to help migration to 64 bit file addressing. When the macro is defined, 
sl@0
   533
   this function becomes a private overload and hence use of 
sl@0
   534
   void RFile64::Write(TInt64 aPos,const TDesC8& aDes,TRequestStatus& aStatus) is recommended.
sl@0
   535
sl@0
   536
@see void RFile::Write(TInt aPos,const TDesC8& aDes,TRequestStatus& aStatus)
sl@0
   537
@see void RFile64::Write(TInt64 aPos,const TDesC8& aDes,TRequestStatus& aStatus)
sl@0
   538
sl@0
   539
@param aPos    The offset from the start of the file at which the first
sl@0
   540
               byte is written. 
sl@0
   541
               If a position beyond the end of the file is specified, then
sl@0
   542
               the write operation begins at the end of the file.
sl@0
   543
               If the position has been locked, then the write fails.
sl@0
   544
              
sl@0
   545
@param aDes    The descriptor from which binary data is written.
sl@0
   546
               NB: this function is asynchronous and the request that it
sl@0
   547
               represents may not complete until some time after the call
sl@0
   548
               to the function has returned. It is important, therefore, that
sl@0
   549
               this descriptor remain valid, or remain in scope, until you have
sl@0
   550
               been notified that the request is complete.
sl@0
   551
sl@0
   552
@param aLength The number of bytes to be written from aDes.
sl@0
   553
			   It must not be negative.
sl@0
   554
			   
sl@0
   555
@param aStatus Request status. On completion contains KErrNone if successful; 
sl@0
   556
			   KErrArgument if aLength is negative; 
sl@0
   557
			   otherwise one of the other system-wide error codes.
sl@0
   558
sl@0
   559
@panic FSCLIENT 19 if aPos is negative.                       
sl@0
   560
*/
sl@0
   561
inline void RFile64::Write(TInt aPos,const TDesC8& aDes,TInt aLength,TRequestStatus& aStatus)
sl@0
   562
	{RFile::Write(aPos, aDes, aLength, aStatus);}