| 401 | } |
| 402 | |
| 403 | result Monotone::loadMem(unsigned char *aMem, unsigned int aLength, bool aCopy, bool aTakeOwnership) |
| 404 | { |
| 405 | MemoryFile mf; |
| 406 | int res = mf.openMem(aMem, aLength, aCopy, aTakeOwnership); |
| 407 | if (res != SO_NO_ERROR) |
| 408 | return res; |
| 409 | return loadFile(&mf); |
| 410 | } |
| 411 | |
| 412 | result Monotone::load(const char *aFilename) |
| 413 | { |