Lines Matching refs:buffer
519 void* buffer = pAllocator->Alloc( REQUIRED_SIZE ); in LoadWaveArchiveTable() local
520 if ( ! internal::Util::IsDeviceMemory( reinterpret_cast<uptr>(buffer), REQUIRED_SIZE ) ) in LoadWaveArchiveTable()
526 s32 readSize = ReadFile( fileId, buffer, fileBlockOffset, 0, loadBlockSize ); in LoadWaveArchiveTable()
532 internal::WaveArchiveFileReader reader( buffer, true ); in LoadWaveArchiveTable()
536 ut::AddOffsetToPtr( buffer, fileBlockOffset ), in LoadWaveArchiveTable()
541 SetFileAddressToTable( fileId, buffer ); in LoadWaveArchiveTable()
543 return buffer; in LoadWaveArchiveTable()
578 void* buffer = pAllocator->Alloc( REQUIRED_SIZE ); in LoadIndividualWave() local
579 if ( ! internal::Util::IsDeviceMemory( reinterpret_cast<uptr>(buffer), REQUIRED_SIZE ) ) in LoadIndividualWave()
588 std::memcpy( buffer, &iWavInfo, sizeof(IndividualWaveInfo) ); in LoadIndividualWave()
594 ut::AddOffsetToPtr( buffer, sizeof(IndividualWaveInfo) ); in LoadIndividualWave()
852 void* buffer = pAllocator->Alloc( REQUIRED_TABLE_SIZE ); in SetWaveArchiveTableInEmbeddedGroupImpl() local
853 if ( buffer == NULL ) in SetWaveArchiveTableInEmbeddedGroupImpl()
859 std::memcpy( buffer, warcFile, fileBlockOffset ); in SetWaveArchiveTableInEmbeddedGroupImpl()
862 std::memcpy( ut::AddOffsetToPtr( buffer, fileBlockOffset ), in SetWaveArchiveTableInEmbeddedGroupImpl()
866 WaveArchiveFileReader reader( buffer, true ); in SetWaveArchiveTableInEmbeddedGroupImpl()
876 SetFileAddressToTable( info.fileId, buffer ); in SetWaveArchiveTableInEmbeddedGroupImpl()
993 void* buffer, in ReadFile() argument
1014 s32 readByte = stream->Read( buffer, ut::RoundUp( static_cast<u32>( size ), 32 ) ); in ReadFile()
1023 u8* ptr = reinterpret_cast<u8*>( buffer ); in ReadFile()
1082 void* buffer = allocator->Alloc( fileSize ); in LoadFile() local
1083 if ( buffer == NULL ) in LoadFile()
1089 if ( ! Util::IsDeviceMemory( reinterpret_cast<uptr>(buffer), fileSize ) ) in LoadFile()
1096 if ( ReadFile( fileId, buffer, (s32)fileSize, 0, loadBlockSize ) != fileSize ) in LoadFile()
1101 nn::snd::FlushDataCache( reinterpret_cast<uptr>(buffer), fileSize ); in LoadFile()
1104 return buffer; in LoadFile()