1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <title>InitStreamingConstruct</title> 8 </head> 9 <body> 10 <h1><CODE>nw::font::ArchiveFont::InitStreamingConstruct</CODE> Member Function</h1> 11 <h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14void InitStreamingConstruct( 15 <a href="../../../nw/font/ArchiveFontBase/ConstructContext/Overview.html">ConstructContext</a> * pContext, 16 void * pBuffer, 17 <span>u32</span> bufferSize, 18 const char * glyphGroups = <a href="../../../nw/font/ArchiveFontBase/LOAD_GLYPH_ALL.html">LOAD_GLYPH_ALL</a> 19); 20</pre> 21 </div> 22 <h2>Arguments</h2> 23 <div class="section"> 24 <table class="arguments"> 25 <thead> 26 <tr> 27 <td width="15" /> 28 <th>Name</th> 29 <td>Description</td> 30 </tr> 31 </thead> 32 <tr> 33 <td>out</td> 34 <th>pContext</th> 35 <td>Pointer to the streaming construct context to be initialized</td> 36 </tr> 37 <tr> 38 <td>out</td> 39 <th>pBuffer</th> 40 <td>Pointer to the buffer associated with this instance. Must be aligned on a 128-byte boundary.</td> 41 </tr> 42 <tr> 43 <td>in</td> 44 <th>bufferSize</th> 45 <td>Size of the buffer pointed to by <CODE>pBuffer</CODE>.</td> 46 </tr> 47 <tr> 48 <td>in</td> 49 <th>glyphGroups</th> 50 <td>String specifying the glyph group to load.</td> 51 </tr> </table> 52 </div> 53 <h2>Return Values</h2> 54 <div class="section"> 55 None. 56 </div> 57 <h2>Description</h2> 58 <div class="section"> 59 <p>Performs initialization to construct a font by extracting glyph groups successively loaded from the archive font.</p><p>For <span class="argument">bufferSize</span>, specify the buffer size that can be obtained with the <CODE><a href="../../../nw/font/ArchiveFont/GetRequireBufferSize.html">nw::font::ArchiveFont::GetRequireBufferSize</a></CODE>function. For <span class="argument">pBuffer</span>, specify the pointer to a memory region of that buffer size. When the font is successfully constructed, the memory region pointed to by <CODE>pBuffer</CODE> is under the management of this instance. Do not overwrite or release this memory region until the <CODE><a href="../../../nw/font/ArchiveFont/Destroy.html">nw::font::ArchiveFont::Destroy</a></CODE> function is called. </p><p>See the description for the <CODE>nw::font:ArchiveFont::GetRequireBufferSize</CODE> function for the meaning of the value specified by <span class="argument">glyphGroups</span>.</p><p>By using the <CODE>InitStreamingConstruct </CODE>function and the <CODE><a href="../../../nw/font/ArchiveFont/StreamingConstruct.html">nw::font::ArchiveFont::StreamingConstruct</a></CODE> function as a pair, you can build a font from a DVD or NAND using only a small read buffer. To construct the font, first use the <CODE>InitStreamingConstruct</CODE> function to initialize the streaming construct context, then call the <CODE> <a href="../../../nw/font/ArchiveFont/StreamingConstruct.html">nw::font::ArchiveFont::StreamingConstruct</a></CODE>function each time data is obtained from DVD or NAND. </p><p>If the entire archive font can be read into memory, you can use the simpler <CODE><a href="../../../nw/font/ArchiveFont/Construct.html">nw::font::ArchiveFont::Construct</a> </CODE>function.</p></div> 60 <h2>See Also</h2> 61 <div class="section"> 62 <p class="reference"><a href="../../../nw/font/ArchiveFont/GetRequireBufferSize.html">nw::font::ArchiveFont::GetRequireBufferSize</a><br /><a href="../../../nw/font/ArchiveFont/Destroy.html">nw::font::ArchiveFont::Destroy</a><br /><a href="../../../nw/font/ArchiveFont/StreamingConstruct.html">nw::font::ArchiveFont::StreamingConstruct</a><br /><a href="../../../nw/font/ArchiveFont/Construct.html">nw::font::ArchiveFont::Construct</a><br /> </p> 63 </div> 64 <h2>Revision History</h2> 65 <div class="section"> 66 <dl class="history"> 67 <dt>2009/11/09</dt> 68 <dd>Initial version.<br /> 69 </dd> 70 </dl> 71 </div> 72 <hr><p>CONFIDENTIAL</p></body> 73</html>