| 697 | } |
| 698 | |
| 699 | IoStreamFileRef readWriteFileStream( const fs::path &path ) |
| 700 | { |
| 701 | #if defined( CINDER_MSW ) |
| 702 | FILE *f = _wfopen( expandPath( path ).wstring().c_str(), L"w+b" ); |
| 703 | #else |
| 704 | FILE *f = fopen( expandPath( path ).string().c_str(), "w+b" ); |
| 705 | #endif |
| 706 | if( f ) { |
| 707 | IoStreamFileRef s = IoStreamFile::create( f, true ); |
| 708 | s->setFileName( path ); |
| 709 | return s; |
| 710 | } |
| 711 | else |
| 712 | return IoStreamFileRef(); |
| 713 | } |
| 714 | |
| 715 | void loadStreamMemory( IStreamRef is, std::shared_ptr<uint8_t> *resultData, size_t *resultDataSize ) |
| 716 | { |
no test coverage detected