diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2024-10-18 00:21:08 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 14:21:08 -0700 |
| commit | 38445f4d516dbc802670def3d4d6fc3d9eb1317c (patch) | |
| tree | 0cb539a25bc74a540a75be52a9ddc8b405f4d337 /include/JSystem/JStudio | |
| parent | 2aa441e40bcc0a8fd369e41a69729e6c34d8c3b2 (diff) | |
Work on d_a_title (#2215)
Diffstat (limited to 'include/JSystem/JStudio')
| -rw-r--r-- | include/JSystem/JStudio/JStudio/stb.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/include/JSystem/JStudio/JStudio/stb.h b/include/JSystem/JStudio/JStudio/stb.h index fe32991cfe..ea299a709c 100644 --- a/include/JSystem/JStudio/JStudio/stb.h +++ b/include/JSystem/JStudio/JStudio/stb.h @@ -157,43 +157,44 @@ private: }; template <int T> -struct TParseData { +struct TParseData : public data::TParse_TParagraph_data::TData { TParseData(const void* pContent) { data::TParse_TParagraph_data data(pContent); set(data); } void set(const data::TParse_TParagraph_data& data) { - //data::TParse_TParagraph_data::TData* p = (data::TParse_TParagraph_data::TData*)this; - data.getData(m_data); + data.getData(this); } bool isEnd() const { - return m_data->_0 == 0; + return _0 == 0; } bool empty() const { - return m_data->_c == NULL; + return _c == NULL; } bool isValid() const { - return !empty() && m_data->_0 == 50; + return !empty() && _0 == 50; } - - data::TParse_TParagraph_data::TData* m_data; }; -template <int T> +template <int T, class Iterator=JGadget::binary::TValueIterator_raw<u8> > struct TParseData_fixed : public TParseData<T> { - TParseData_fixed(const void* pContent) : TParseData(pContent) {} + TParseData_fixed(const void* pContent) : TParseData<T>(pContent) {} const void* getNext() const { - return m_data->_c; + return fileCount; } bool isValid() const { return TParseData::isValid() && getNext() != NULL; } + + Iterator begin() { + return Iterator(fileCount); + } }; } // namespace stb |
