comparison Framework/PostgreSQL/PostgreSQLLargeObject.cpp @ 1:d17b2631bb67

starting StorageBackend
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Jul 2018 18:05:24 +0200
parents 7cea966b6829
children 714c5d2bee76
comparison
equal deleted inserted replaced
0:7cea966b6829 1:d17b2631bb67
198 target = NULL; 198 target = NULL;
199 } 199 }
200 else 200 else
201 { 201 {
202 target = malloc(size); 202 target = malloc(size);
203 if (target == NULL)
204 {
205 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotEnoughMemory);
206 }
207
203 reader.Read(reinterpret_cast<char*>(target)); 208 reader.Read(reinterpret_cast<char*>(target));
204 } 209 }
205 } 210 }
206 211
207 212