TChunkCreateInfo Struct Reference

struct TChunkCreateInfo

This structure specifies the type and properties of the chunk to be created. It is passed as a parameter to the RChunk::Create() method.

Constructor & Destructor Documentation

TChunkCreateInfo()

IMPORT_CTChunkCreateInfo()

Member Functions Documentation

SetCache(TInt)

IMPORT_C voidSetCache(TIntaMaxSize)

For use by file server only.

Parameters

TInt aMaxSize

SetClearByte(TUint8)

IMPORT_C voidSetClearByte(TUint8aClearByte)

Parameters

TUint8 aClearByte

SetCode(TInt, TInt)

IMPORT_C voidSetCode(TIntaInitialSize,
TIntaMaxSize
)

Parameters

TInt aInitialSize
TInt aMaxSize

SetDisconnected(TInt, TInt, TInt)

IMPORT_C voidSetDisconnected(TIntaInitialBottom,
TIntaInitialTop,
TIntaMaxSize
)

Parameters

TInt aInitialBottom
TInt aInitialTop
TInt aMaxSize

SetDoubleEnded(TInt, TInt, TInt)

IMPORT_C voidSetDoubleEnded(TIntaInitialBottom,
TIntaInitialTop,
TIntaMaxSize
)

Parameters

TInt aInitialBottom
TInt aInitialTop
TInt aMaxSize

SetGlobal(const TDesC &)

IMPORT_C voidSetGlobal(const TDesC &aName)

Parameters

const TDesC & aName

SetNormal(TInt, TInt)

IMPORT_C voidSetNormal(TIntaInitialSize,
TIntaMaxSize
)

Parameters

TInt aInitialSize
TInt aMaxSize

SetOwner(TOwnerType)

IMPORT_C voidSetOwner(TOwnerTypeaType)

Parameters

TOwnerType aType

SetPaging(const TChunkPagingAtt)

IMPORT_C voidSetPaging(const TChunkPagingAttaPaging)

Parameters

const TChunkPagingAtt aPaging

SetReadOnly()

IMPORT_C voidSetReadOnly()

SetThreadHeap(TInt, TInt, const TDesC &)

voidSetThreadHeap(TIntaInitialSize,
TIntaMaxSize,
const TDesC &aName
)

Parameters

TInt aInitialSize
TInt aMaxSize
const TDesC & aName

Member Enumerations Documentation

Enum TChunkCreateVersions

Currently supported version numbers

Enumerators

EVersion0
ESupportedVersions

Enum TChunkPagingAtt

Attributes that specify whether the chunk to be created is data paged or not.

Enumerators

EUnspecified

The chunk will use the creating process's paging attributes.

EPaged

The chunk will be data paged.

EUnpaged

The chunk will not be data paged.

Member Data Documentation

TUint iAttributes

TUint iAttributes[protected]

Attributes to the chunk to be created should have. Should be set from one or more the values in TChunkCreate::TChunkCreateAtt.

TUint8 iClearByte

TUint8 iClearByte[protected]

The byte to clear all the memory committed to the chunk to.

TBool iGlobal

TBool iGlobal[protected]

Specify if chunk is global or not.

TInt iInitialBottom

TInt iInitialBottom[protected]

The offset of the bottom of the region to commit to the chunk on creation from the base of the chunk's reserved region. This is only used for double ended and disconnected chunks.

TInt iInitialTop

TInt iInitialTop[protected]

The offset of the top of the region to commit to the chunk on creation from the base of the chunk's reserved region. This is only used for double ended and disconnected chunks.

TInt iMaxSize

TInt iMaxSize[protected]

The maximum size in bytes of the chunk to be created.

const TDesC * iName

const TDesC *iName[protected]

A pointer to a descriptor containing the name to be assigned to global chunks. The length of the descriptor must be no greater than that allowed for a TKName type. Must be NULL for local chunks.

TOwnerType iOwnerType

TOwnerType iOwnerType[protected]

An enumeration whose enumerators define the ownership of this chunk handle. If not explicitly specified, EOwnerProcess is taken as default.

TUint8 iSpare1

TUint8 iSpare1[protected]

TUint iSpare2

TUint iSpare2[protected]

TUint iType

TUint iType[protected]

The type of the chunk to be created.

TUint iVersionNumber

TUint iVersionNumber[protected]

The version number of this TChunkCreateInfo.