Searched refs:readBufferSize (Results 1 – 2 of 2) sorted by relevance
| /NW4C-1.2.23/demos/font/PackedFont/sources/ |
| D | main.cpp | 189 const u32 readBufferSize = fileSize; in InitFont() local 190 void* readBuffer = MemAlloc(readBufferSize); in InitFont() 193 NN_LOG("fail to allocate memory for resource buffer(%d byte).", readBufferSize); in InitFont() 197 const int readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFont() 198 if (readSize != readBufferSize) in InitFont() 250 pFileReader->GetSize(), readBufferSize, fontBufferSize); in InitFont() 278 const u32 readBufferSize = DEMO_STREAMING_READ_BUFFER_SIZE; in InitFontStreaming() local 282 NN_ASSERT(readBufferSize >= nw::font::PackedFont::HEADER_SIZE); in InitFontStreaming() 284 void* const readBuffer = MemAlloc(readBufferSize); in InitFontStreaming() 287 NW_WARNING(false, "fail to allocate read buffer(%d byte).", readBufferSize); in InitFontStreaming() [all …]
|
| /NW4C-1.2.23/demos/font/ArchiveFont/sources/ |
| D | main.cpp | 231 const u32 readBufferSize = fileSize; in InitFont() local 232 void* readBuffer = MemAlloc(readBufferSize); in InitFont() 238 const int readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFont() 239 if (readSize != readBufferSize) in InitFont() 283 pFileReader->GetSize(), readBufferSize, fontBufferSize ); in InitFont() 309 const u32 readBufferSize = DEMO_STREAMING_READ_BUFFER_SIZE; in InitFontStreaming() local 313 NN_ASSERT(readBufferSize >= nw::font::ArchiveFont::HEADER_SIZE); in InitFontStreaming() 315 void* const readBuffer = MemAlloc(readBufferSize); in InitFontStreaming() 318 NN_LOG("can't alloc %d bytes", readBufferSize); in InitFontStreaming() 369 readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFontStreaming() [all …]
|