1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00

Added a way to store a Font descriptor as a string. Tweaked sample-rate initialisation in the AU hosting wrapper. Gave default constructors to a few components.

This commit is contained in:
Julian Storer 2010-05-12 11:53:28 +01:00
parent 5a9e18d3a5
commit 22e02cf791
13 changed files with 201 additions and 32 deletions

View file

@ -28,6 +28,7 @@
BEGIN_JUCE_NAMESPACE
#include "juce_ValueTree.h"
#include "../io/streams/juce_MemoryInputStream.h"
//==============================================================================
@ -860,4 +861,10 @@ ValueTree ValueTree::readFromStream (InputStream& input)
return v;
}
ValueTree ValueTree::readFromData (const void* const data, const size_t numBytes)
{
MemoryInputStream in (data, numBytes, false);
return readFromStream (in);
}
END_JUCE_NAMESPACE