Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
ChunkedArrayTextStore.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
5namespace Stroika::Frameworks::Led {
6
7 /*
8 ********************************************************************************
9 ********************** ChunkedArrayTextStore::ChunkAndOffset *******************
10 ********************************************************************************
11 */
12 inline ChunkedArrayTextStore::ChunkAndOffset::ChunkAndOffset (size_t chunk, size_t offset)
13 : fChunk (chunk)
14 , fOffset (offset)
15 {
16 }
17
18 /*
19 ********************************************************************************
20 **************************** ChunkedArrayTextStore *****************************
21 ********************************************************************************
22 */
23 inline size_t ChunkedArrayTextStore::GetLength () const noexcept
24 {
25 return fLength;
26 }
27 inline ChunkedArrayTextStore::ChunkAndOffset ChunkedArrayTextStore::FindChunkIndex (size_t charPos) const
28 {
29 // No cache implemented yet - later check cache - and only call _ version if need be...
30 return (FindChunkIndex_ (charPos));
31 }
32 inline void ChunkedArrayTextStore::InvalCachedChunkIndexes ()
33 {
34 fCachedChunkIndex = 0;
35 fCachedChunkIndexesOffset = 0;
36 }
37
38}