Searched refs:readBufferSize (Results 1 – 2 of 2) sorted by relevance
| /NW4C-2.0.3/demos/font/PackedFont/sources/ |
| D | main.cpp | 191 const u32 readBufferSize = fileSize; in InitFont() local 192 void* readBuffer = MemAlloc(readBufferSize); in InitFont() 195 NN_LOG("fail to allocate memory for resource buffer(%d byte).", readBufferSize); in InitFont() 199 const int readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFont() 200 if (readSize != readBufferSize) in InitFont() 252 pFileReader->GetSize(), readBufferSize, fontBufferSize); in InitFont() 280 const u32 readBufferSize = DEMO_STREAMING_READ_BUFFER_SIZE; in InitFontStreaming() local 284 NN_ASSERT(readBufferSize >= nw::font::PackedFont::HEADER_SIZE); in InitFontStreaming() 286 void* const readBuffer = MemAlloc(readBufferSize); in InitFontStreaming() 289 NW_WARNING(false, "fail to allocate read buffer(%d byte).", readBufferSize); in InitFontStreaming() [all …]
|
| /NW4C-2.0.3/demos/font/ArchiveFont/sources/ |
| D | main.cpp | 233 const u32 readBufferSize = fileSize; in InitFont() local 234 void* readBuffer = MemAlloc(readBufferSize); in InitFont() 240 const int readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFont() 241 if (readSize != readBufferSize) in InitFont() 285 pFileReader->GetSize(), readBufferSize, fontBufferSize ); in InitFont() 311 const u32 readBufferSize = DEMO_STREAMING_READ_BUFFER_SIZE; in InitFontStreaming() local 315 NN_ASSERT(readBufferSize >= nw::font::ArchiveFont::HEADER_SIZE); in InitFontStreaming() 317 void* const readBuffer = MemAlloc(readBufferSize); in InitFontStreaming() 320 NN_LOG("can't alloc %d bytes", readBufferSize); in InitFontStreaming() 371 readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFontStreaming() [all …]
|