sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // ESTOR.MMH sl@0: // estor.mmh Stream store management - default file buffer size, sl@0: // max read ahead value and file block size. sl@0: // This file is an example file that may be copied, modified and sl@0: // installed as \epoc32\include\Estor.mmh file to customise buffer handling sl@0: // in the Store component. Also, SYMBIAN_CUSTOM_STORE_BUFFER_SIZES must be sl@0: // defined in the related \epoc32\include\variant\Symbian_OS_v.hrh file, sl@0: // where is the OS version number, like 9.1. sl@0: // This file is not expected to be directly modified. sl@0: // NOTE: Changing the value of these macros will affect RAM usage in sl@0: // store/stream processing system wide and should not be undertaken lightly. sl@0: // Default file buffer size in bytes used in RFileBuf objects. sl@0: // It can't be less than 1536 bytes. sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: */ sl@0: MACRO DEFAULT_FILE_BUF_SIZE=4096 sl@0: sl@0: /** sl@0: Maximum RFileBuf read ahead value in bytes. This defines the number of bytes sl@0: read into the file buffer when buffer underflow occurs. sl@0: It can't be less than 512 bytes and must not be greater sl@0: than DEFAULT_FILE_BUF_SIZE. sl@0: @publishedPartner sl@0: */ sl@0: MACRO MAX_READ_AHEAD_VALUE=2048 sl@0: sl@0: /** sl@0: File system block size to be assumed by RFileBuf. It is used in buffer underflow sl@0: to perform block aligned reads to load the buffer. sl@0: It can't be less than 512 bytes and must not be greater sl@0: then MAX_READ_AHEAD_VALUE. Also, FILE_BLOCK_SIZE value must be power of 2. sl@0: @publishedPartner sl@0: */ sl@0: MACRO FILE_BLOCK_SIZE=1024 sl@0: