MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / loadFileAsData

Method loadFileAsData

3rdparty/Amalgamate/juce_core_amalgam.cpp:2343–2350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2341bool File::setCreationTime (const Time& t) const { return setFileTimesInternal (0, 0, t.toMilliseconds()); }
2342
2343bool File::loadFileAsData (MemoryBlock& destBlock) const
2344{
2345 if (! existsAsFile())
2346 return false;
2347
2348 FileInputStream in (*this);
2349 return in.openedOk() && getSize() == in.readIntoMemoryBlock (destBlock);
2350}
2351
2352String File::loadFileAsString() const
2353{

Callers 1

runTestMethod · 0.80

Calls 2

getSizeFunction · 0.85
readIntoMemoryBlockMethod · 0.80

Tested by

no test coverage detected