MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / createOutputStream

Method createOutputStream

JUCE/modules/juce_core/network/juce_URL.cpp:732–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730#endif
731
732std::unique_ptr<OutputStream> URL::createOutputStream() const
733{
734 if (isLocalFile())
735 {
736 #if JUCE_IOS
737 // We may need to refresh the embedded bookmark.
738 return std::make_unique<iOSFileStreamWrapper<FileOutputStream>> (const_cast<URL&> (*this));
739 #else
740 return std::make_unique<FileOutputStream> (getLocalFile());
741 #endif
742 }
743
744 #if JUCE_ANDROID
745 return std::unique_ptr<OutputStream> (juce_CreateContentURIOutputStream (*this));
746 #else
747 return nullptr;
748 #endif
749}
750
751//==============================================================================
752bool URL::readEntireBinaryStream (MemoryBlock& destData, bool usePostCommand) const

Callers 1

Calls 1

Tested by

no test coverage detected