Searched refs:readBufferSize (Results 1 – 2 of 2) sorted by relevance
| /CTR-SDK-4.2.7-SampleDemos/font/PackedFont/ |
| D | main.cpp | 138 const u32 readBufferSize = fileSize; in InitFont() local 139 void* readBuffer = s_AppHeap.Allocate(readBufferSize); in InitFont() 142 NN_LOG("Failed to allocate memory for the resource buffer (%d bytes).", readBufferSize); in InitFont() 146 const int readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFont() 147 if (readSize != readBufferSize) in InitFont() 199 pFileReader->GetSize(), readBufferSize, fontBufferSize); in InitFont() 227 const int readBufferSize = DEMO_STREAMING_READ_BUFFER_SIZE; in InitFontStreaming() local 231 NN_ASSERT(readBufferSize >= nn::font::PackedFont::HEADER_SIZE); in InitFontStreaming() 233 void* const readBuffer = s_AppHeap.Allocate(readBufferSize); in InitFontStreaming() 236 NN_WARNING(false, "Failed to allocate the read buffer (%d bytes).", readBufferSize); in InitFontStreaming() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/font/ArchiveFont/ |
| D | main.cpp | 201 const u32 readBufferSize = fileSize; in InitFont() local 202 void* readBuffer = s_AppHeap.Allocate(readBufferSize); in InitFont() 208 const int readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFont() 209 if (readSize != readBufferSize) in InitFont() 253 pFileReader->GetSize(), readBufferSize, fontBufferSize ); in InitFont() 279 const u32 readBufferSize = DEMO_STREAMING_READ_BUFFER_SIZE; in InitFontStreaming() local 283 NN_ASSERT(readBufferSize >= nn::font::ArchiveFont::HEADER_SIZE); in InitFontStreaming() 285 void* const readBuffer = s_AppHeap.Allocate(readBufferSize); in InitFontStreaming() 288 NN_LOG("can't alloc %d bytes", readBufferSize); in InitFontStreaming() 339 readSize = pFileReader->Read(readBuffer, readBufferSize); in InitFontStreaming() [all …]
|