Symbian3/PDK/Source/GUID-EA8974A2-1E8F-4272-880A-183AD1A40371.dita
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 16 Jul 2010 17:23:46 +0100
changeset 12 80ef3a206772
parent 9 59758314f811
permissions -rw-r--r--
Week 28 contribution of PDK documentation content. See release notes for details. Fixes bugs Bug 1897, Bug 344, Bug 2681, Bug 463, Bug 1522.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE task
  PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="GUID-EA8974A2-1E8F-4272-880A-183AD1A40371" xml:lang="en"><title>Setting
the File Size of a Large File</title><shortdesc>Describes how to set the size of a file.</shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody>
<context id="GUID-D2F99F83-5093-4781-82A1-BECB32415696"><p>The function <codeph>TEntry::SetFileSize()</codeph> is intended
for use by file-system plugins, and not recommended to be called by general
clients of the File Server.</p></context>
<steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-12-1-18-1-1-9-1-6-1-8-1-16-1-3-2">
<step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-12-1-18-1-1-9-1-6-1-8-1-16-1-3-2-1"><cmd>Declare the variable
type as a TInt64.</cmd>
<info><codeblock xml:space="preserve">//TInt fileSize = 3000;    
TInt64 fileSize = 3000000000;</codeblock></info>
</step>
<step id="GUID-52A82CB1-9DD7-42EC-9D63-F7FE47E4C983"><cmd>Call the <codeph>SetFileSize()</codeph> function
with the new file size. </cmd>
<info><codeblock xml:space="preserve">TEntry entry;
...
//entry.iSize = fileSize;
entry.SetFileSize(fileSize);</codeblock></info>
</step>
</steps>
</taskbody><related-links>
<link href="GUID-B97C3C1D-7F35-4B0A-9420-180CE70EF6DE.dita"><linktext>Getting the
Size of a Large File using TEntry</linktext></link>
<link href="GUID-B6F35F05-8EFB-5E88-B14B-C1B2F83E6015.dita"><linktext>Getting the
Size of a Large File using RFile</linktext></link>
</related-links></task>