|
113 | 113 | <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structrds2cpp_1_1ParseRdsOptions.html"> 26</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structrds2cpp_1_1ParseRdsOptions.html">ParseRdsOptions</a> {</div> |
114 | 114 | <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structrds2cpp_1_1ParseRdsOptions.html#a1dd6bd4c10e4685d02cc45f6c60fc6f2"> 30</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structrds2cpp_1_1ParseRdsOptions.html#a1dd6bd4c10e4685d02cc45f6c60fc6f2">parallel</a> = <span class="keyword">false</span>;</div> |
115 | 115 | <div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div> |
116 | | -<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structrds2cpp_1_1ParseRdsOptions.html#ace40bcfb11a4966058d06c5a988202ce"> 36</a></span> <a class="code hl_structRef" href="https://ltla.github.io/byteme/structbyteme_1_1SomeFileReaderOptions.html">byteme::SomeFileReaderOptions</a> <a class="code hl_variable" href="structrds2cpp_1_1ParseRdsOptions.html#ace40bcfb11a4966058d06c5a988202ce">file_options</a>;</div> |
| 116 | +<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structrds2cpp_1_1ParseRdsOptions.html#ad4ba63c29226fef224ffa0c44a20bb0b"> 36</a></span> std::size_t <a class="code hl_variable" href="structrds2cpp_1_1ParseRdsOptions.html#ad4ba63c29226fef224ffa0c44a20bb0b">buffer_size</a> = 65536;</div> |
117 | 117 | <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>};</div> |
118 | 118 | </div> |
119 | 119 | <div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div> |
120 | 120 | <div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="keyword">template</span><<span class="keyword">class</span> Reader_></div> |
121 | 121 | <div class="foldopen" id="foldopen00050" data-start="{" data-end="}"> |
122 | 122 | <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="namespacerds2cpp.html#a6e8135078d12460c602af9c3933eb435"> 50</a></span><a class="code hl_struct" href="structrds2cpp_1_1RdsFile.html">RdsFile</a> <a class="code hl_function" href="namespacerds2cpp.html#a6e8135078d12460c602af9c3933eb435">parse_rds</a>(Reader_& reader, <span class="keyword">const</span> <a class="code hl_struct" href="structrds2cpp_1_1ParseRdsOptions.html">ParseRdsOptions</a>& options) {</div> |
123 | | -<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> std::unique_ptr<byteme::PerByteInterface<unsigned char> > srcptr;</div> |
| 123 | +<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> std::unique_ptr<byteme::BufferedReader<unsigned char> > srcptr;</div> |
124 | 124 | <div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">if</span> (options.<a class="code hl_variable" href="structrds2cpp_1_1ParseRdsOptions.html#a1dd6bd4c10e4685d02cc45f6c60fc6f2">parallel</a>) {</div> |
125 | | -<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> srcptr.reset(<span class="keyword">new</span> <a class="code hl_classRef" href="https://ltla.github.io/byteme/classbyteme_1_1PerByteParallel.html">byteme::PerByteParallel<unsigned char, Reader_*></a>(&reader));</div> |
| 125 | +<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> srcptr.reset(<span class="keyword">new</span> <a class="code hl_classRef" href="https://ltla.github.io/byteme/classbyteme_1_1SerialBufferedReader.html">byteme::SerialBufferedReader<unsigned char, Reader_*></a>(&reader, options.<a class="code hl_variable" href="structrds2cpp_1_1ParseRdsOptions.html#ad4ba63c29226fef224ffa0c44a20bb0b">buffer_size</a>));</div> |
126 | 126 | <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> } <span class="keywordflow">else</span> {</div> |
127 | | -<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> srcptr.reset(<span class="keyword">new</span> <a class="code hl_classRef" href="https://ltla.github.io/byteme/classbyteme_1_1PerByteSerial.html">byteme::PerByteSerial<unsigned char, Reader_*></a>(&reader));</div> |
| 127 | +<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> srcptr.reset(<span class="keyword">new</span> <a class="code hl_classRef" href="https://ltla.github.io/byteme/classbyteme_1_1ParallelBufferedReader.html">byteme::ParallelBufferedReader<unsigned char, Reader_*></a>(&reader, options.<a class="code hl_variable" href="structrds2cpp_1_1ParseRdsOptions.html#ad4ba63c29226fef224ffa0c44a20bb0b">buffer_size</a>));</div> |
128 | 128 | <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div> |
129 | 129 | <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">auto</span>& src = *srcptr; </div> |
130 | 130 | <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_struct" href="structrds2cpp_1_1RdsFile.html">RdsFile</a> output(<span class="keyword">false</span>);</div> |
|
227 | 227 | <div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div> |
228 | 228 | <div class="foldopen" id="foldopen00163" data-start="{" data-end="}"> |
229 | 229 | <div class="line"><a id="l00163" name="l00163"></a><span class="lineno"><a class="line" href="namespacerds2cpp.html#a241c3b1eaf4075a72418c89407e76a20"> 163</a></span><span class="keyword">inline</span> <a class="code hl_struct" href="structrds2cpp_1_1RdsFile.html">RdsFile</a> <a class="code hl_function" href="namespacerds2cpp.html#a6e8135078d12460c602af9c3933eb435">parse_rds</a>(std::string file, <span class="keyword">const</span> <a class="code hl_struct" href="structrds2cpp_1_1ParseRdsOptions.html">ParseRdsOptions</a>& options) {</div> |
230 | | -<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_classRef" href="https://ltla.github.io/byteme/classbyteme_1_1SomeFileReader.html">byteme::SomeFileReader</a> reader(file.c_str(), options.<a class="code hl_variable" href="structrds2cpp_1_1ParseRdsOptions.html#ace40bcfb11a4966058d06c5a988202ce">file_options</a>);</div> |
| 230 | +<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_classRef" href="https://ltla.github.io/byteme/classbyteme_1_1GzipFileReader.html">byteme::GzipFileReader</a> reader(file.c_str(), {});</div> |
231 | 231 | <div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacerds2cpp.html#a6e8135078d12460c602af9c3933eb435">parse_rds</a>(reader, options);</div> |
232 | 232 | <div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span>}</div> |
233 | 233 | </div> |
|
239 | 239 | <div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span><span class="preprocessor">#endif</span></div> |
240 | 240 | <div class="ttc" id="aRdsFile_8hpp_html"><div class="ttname"><a href="RdsFile_8hpp.html">RdsFile.hpp</a></div><div class="ttdoc">Information about an RDS file.</div></div> |
241 | 241 | <div class="ttc" id="abyteme_8hpp_html"><div class="ttname"><a href="https://ltla.github.io/byteme/byteme_8hpp.html">byteme.hpp</a></div></div> |
242 | | -<div class="ttc" id="aclassbyteme_1_1PerByteParallel_html"><div class="ttname"><a href="https://ltla.github.io/byteme/classbyteme_1_1PerByteParallel.html">byteme::PerByteParallel</a></div></div> |
243 | | -<div class="ttc" id="aclassbyteme_1_1PerByteSerial_html"><div class="ttname"><a href="https://ltla.github.io/byteme/classbyteme_1_1PerByteSerial.html">byteme::PerByteSerial</a></div></div> |
244 | | -<div class="ttc" id="aclassbyteme_1_1SomeFileReader_html"><div class="ttname"><a href="https://ltla.github.io/byteme/classbyteme_1_1SomeFileReader.html">byteme::SomeFileReader</a></div></div> |
| 242 | +<div class="ttc" id="aclassbyteme_1_1GzipFileReader_html"><div class="ttname"><a href="https://ltla.github.io/byteme/classbyteme_1_1GzipFileReader.html">byteme::GzipFileReader</a></div></div> |
| 243 | +<div class="ttc" id="aclassbyteme_1_1ParallelBufferedReader_html"><div class="ttname"><a href="https://ltla.github.io/byteme/classbyteme_1_1ParallelBufferedReader.html">byteme::ParallelBufferedReader</a></div></div> |
| 244 | +<div class="ttc" id="aclassbyteme_1_1SerialBufferedReader_html"><div class="ttname"><a href="https://ltla.github.io/byteme/classbyteme_1_1SerialBufferedReader.html">byteme::SerialBufferedReader</a></div></div> |
245 | 245 | <div class="ttc" id="anamespacerds2cpp_html"><div class="ttname"><a href="namespacerds2cpp.html">rds2cpp</a></div><div class="ttdoc">Parse an RDS file in C++.</div><div class="ttdef"><b>Definition</b> StringEncoding.hpp:10</div></div> |
246 | 246 | <div class="ttc" id="anamespacerds2cpp_html_a6e8135078d12460c602af9c3933eb435"><div class="ttname"><a href="namespacerds2cpp.html#a6e8135078d12460c602af9c3933eb435">rds2cpp::parse_rds</a></div><div class="ttdeci">RdsFile parse_rds(Reader_ &reader, const ParseRdsOptions &options)</div><div class="ttdef"><b>Definition</b> parse_rds.hpp:50</div></div> |
247 | 247 | <div class="ttc" id="anamespacerds2cpp_html_a9a4371900eec82463a3aa0a2a9d5cce1"><div class="ttname"><a href="namespacerds2cpp.html#a9a4371900eec82463a3aa0a2a9d5cce1">rds2cpp::Parsed</a></div><div class="ttdeci">RdsFile Parsed</div><div class="ttdef"><b>Definition</b> parse_rds.hpp:171</div></div> |
248 | | -<div class="ttc" id="astructbyteme_1_1SomeFileReaderOptions_html"><div class="ttname"><a href="https://ltla.github.io/byteme/structbyteme_1_1SomeFileReaderOptions.html">byteme::SomeFileReaderOptions</a></div></div> |
249 | 248 | <div class="ttc" id="astructrds2cpp_1_1ParseRdsOptions_html"><div class="ttname"><a href="structrds2cpp_1_1ParseRdsOptions.html">rds2cpp::ParseRdsOptions</a></div><div class="ttdoc">Options for parse_rds().</div><div class="ttdef"><b>Definition</b> parse_rds.hpp:26</div></div> |
250 | 249 | <div class="ttc" id="astructrds2cpp_1_1ParseRdsOptions_html_a1dd6bd4c10e4685d02cc45f6c60fc6f2"><div class="ttname"><a href="structrds2cpp_1_1ParseRdsOptions.html#a1dd6bd4c10e4685d02cc45f6c60fc6f2">rds2cpp::ParseRdsOptions::parallel</a></div><div class="ttdeci">bool parallel</div><div class="ttdef"><b>Definition</b> parse_rds.hpp:30</div></div> |
251 | | -<div class="ttc" id="astructrds2cpp_1_1ParseRdsOptions_html_ace40bcfb11a4966058d06c5a988202ce"><div class="ttname"><a href="structrds2cpp_1_1ParseRdsOptions.html#ace40bcfb11a4966058d06c5a988202ce">rds2cpp::ParseRdsOptions::file_options</a></div><div class="ttdeci">byteme::SomeFileReaderOptions file_options</div><div class="ttdef"><b>Definition</b> parse_rds.hpp:36</div></div> |
| 250 | +<div class="ttc" id="astructrds2cpp_1_1ParseRdsOptions_html_ad4ba63c29226fef224ffa0c44a20bb0b"><div class="ttname"><a href="structrds2cpp_1_1ParseRdsOptions.html#ad4ba63c29226fef224ffa0c44a20bb0b">rds2cpp::ParseRdsOptions::buffer_size</a></div><div class="ttdeci">std::size_t buffer_size</div><div class="ttdef"><b>Definition</b> parse_rds.hpp:36</div></div> |
252 | 251 | <div class="ttc" id="astructrds2cpp_1_1RdsFile_html"><div class="ttname"><a href="structrds2cpp_1_1RdsFile.html">rds2cpp::RdsFile</a></div><div class="ttdoc">Contents of the parsed RDS file.</div><div class="ttdef"><b>Definition</b> RdsFile.hpp:21</div></div> |
253 | 252 | <div class="ttc" id="astructrds2cpp_1_1RdsFile_html_a24c37c4e7b3356ed5a1301dec32d4b78"><div class="ttname"><a href="structrds2cpp_1_1RdsFile.html#a24c37c4e7b3356ed5a1301dec32d4b78">rds2cpp::RdsFile::writer_version</a></div><div class="ttdeci">std::array< unsigned char, 3 > writer_version</div><div class="ttdef"><b>Definition</b> RdsFile.hpp:53</div></div> |
254 | 253 | <div class="ttc" id="astructrds2cpp_1_1RdsFile_html_a4d451375c25d57d203169dce2bed1507"><div class="ttname"><a href="structrds2cpp_1_1RdsFile.html#a4d451375c25d57d203169dce2bed1507">rds2cpp::RdsFile::object</a></div><div class="ttdeci">std::unique_ptr< RObject > object</div><div class="ttdef"><b>Definition</b> RdsFile.hpp:68</div></div> |
|
0 commit comments