Class for storing an index table of an indexed file.
More...
Class for storing an index table of an indexed file.
Definition at line 18 of file indexwritetable.h.
◆ Append()
Appends a new item to the index table.
- Parameters
-
ui16StreamId | [in] The stream id. |
ui64StreamIndex | [in] The stream index. |
ui64ChunkIndex | [in] The chunk index. |
nFilePos | [in] The file position. |
nSize | [in] The size of the item. |
nTimeStamp | [in] The timestamp. |
ui32Flags | [in] append flags, see IIndexedFile::tChunkType |
bIndexEntryAppended | [in, out] return true if index enty is appended for this chunk |
- Returns
- Standard result
◆ CopyToBuffer()
Copys all stream data into a buffer.
No buffer overflow checking is done!
- Parameters
-
ui16StreamId | [in] the stream id. |
pvBuffer | [out] The buffer that is to be filled. |
- Returns
- Standard result.
- This method is real-time safe.\nSee @ref page_real_time_safe.\n
◆ Create()
Allocates all neccessary resources.
- Returns
- Standard result.
◆ Free()
Frees all allocated resources.
- Returns
- Standard result.
◆ GetBufferSize()
Returns the buffer size of a stream.
- Parameters
-
ui16StreamId | [in] The stream id. |
- Returns
- The buffer size of the stream.
- This method is real-time safe.\nSee @ref page_real_time_safe.\n
◆ GetIndexOffset()
Returns the offset of the first stream index in the chunk headers fro the given stream.
- Parameters
-
[in] | ui16StreamId | The stream id. |
- Returns
- the offset of the first stream index in the chunk headers fro the given stream.
◆ GetIndexTableOffset()
Returns the offset of the stream table indices in the chunk header and master/stream references.
- Parameters
-
[in] | ui16StreamId | The stream id. |
- Returns
- the offset of the stream table indices in the chunk header and master/stream references..
◆ GetItemCount()
Returns the item count of a stream.
- Parameters
-
ui16StreamId | [in] The stream id. |
- Returns
- The item count of the stream.
- This method is real-time safe.\nSee @ref page_real_time_safe.\n
◆ GetMaxStreamId()
Returns the biggest possible stream id.
- Returns
- The biggest possible stream id.
- This method is real-time safe.\nSee @ref page_real_time_safe.\n
◆ Remove()
The method removes an index entry from the front of the tables.
- Parameters
-
[in] | ui64ChunkIndex | the chunk index |
[in] | ui16StreamId | the stream id |
- Returns
- Standard result.