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::PackedFont::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/PackedFont/GetRequireBufferSize.html">nw::font::PackedFont::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/PackedFont/Destroy.html">nw::font::PackedFont::Destroy</a></CODE> function is called. The cache count specified by the <CODE><a href="../../../nw/font/PackedFont/GetRequireBufferSize.html">nw::font::PackedFont::GetRequireBufferSize</a></CODE> function does not need to be specified here because it can be obtained internally by inverse calculating <CODE>bufferSize</CODE>. </p><p>See the description for the <CODE><a href="../../../nw/font/PackedFont/GetRequireBufferSize.html">nw::font::PackedFont::GetRequireBufferSize</a></CODE> function for the meaning of the value specified by <span class="argument">glyphGroups</a>.</p><p>By using the <CODE>InitStreamingConstruct</CODE> function and the <CODE><a href="../../../nw/font/PackedFont/StreamingConstruct.html">nw::font::PackedFont::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/PackedFont/StreamingConstruct.html">nw::font::PackedFont::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/PackedFont/Construct.html">nw::font::PackedFont::Construct</a></CODE> function.</p></div> 60 <h2>Revision History</h2> 61 <div class="section"> 62 <dl class="history"> 63 <dt>2009/11/09</dt> 64 <dd>Initial version.<br /> 65 </dd> 66 </dl> 67 </div> 68 <hr><p>CONFIDENTIAL</p></body> 69</html>