TBTraceBuffer Class Reference

class TBTraceBuffer

Member Functions Documentation

Adjust(TUint, TInt)

TInt Adjust ( TUint aTail,
TInt aSize
) [private]

Adjust trace data size so it represents a whole number of trace records.

Parameters

TUint aTail The buffer offset where the available trace data is located.
TInt aSize The size of data at aTail. Must be >= KMaxBTraceRecordSize.

CopyData(TUint, TUint, TInt)

TInt CopyData ( TUint aData,
TUint aTail,
TInt aSize
) [private]
Copy data out of the main trace buffer into the 'copy buffer'. This may fail if the data is overwritten before it hase been successfully copied.
Post-condition
iBuffer.iTail has been updated to point to the trace record following those copied.

Parameters

TUint aData The buffer offset where the available trace data is located.
TUint aTail The value which iTail is expected to have if no more overwrites have occurred
TInt aSize The size of data at aTail

Data(TUint &, TUint &)

TInt Data ( TUint & aData,
TUint & aTail
) [private]

Find out how much data is available.

Parameters

TUint & aData Set to the buffer offset where the available trace data is located.
TUint & aTail Set to the the original value of the iTail pointer

GetData(TUint8 *&)

TInt GetData ( TUint8 *& aData ) [private]

Get pointer to as much contiguous trace data as is available.

Parameters

TUint8 *& aData Pointer to the first byte of trace data.

UpdateTail(TUint32, TUint32)

TUint UpdateTail ( TUint32 aOld,
TUint32 aNew
) [private]

Update the stored tail offset.

Parameters

TUint32 aOld The value which iTail is expected to have if no more overwrites have occurred
TUint32 aNew The new value for iTail

Member Data Documentation

TUint iCopyBuffer

TUint iCopyBuffer [private]

TUint iCopyBufferSize

TUint iCopyBufferSize [private]

TUint iEnd

TUint iEnd [private]

TUint iGeneration

TUint iGeneration [private]

TUint iHead

TUint iHead [private]

TUint iMode

TUint iMode [private]

TUint iRecordOffsets

TUint iRecordOffsets [private]

TUint iStart

TUint iStart [private]

TUint iTail

TUint iTail [private]

TUint iWrap

TUint iWrap [private]