comparison OrthancFramework/Sources/StringMemoryBuffer.cpp @ 4819:70d2a97ca8cb openssl-3.x

integration mainline->openssl-3.x
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 25 Nov 2021 13:12:32 +0100
parents 434843934307
children 7053502fbf97
comparison
equal deleted inserted replaced
4785:61da49321754 4819:70d2a97ca8cb
45 { 45 {
46 std::unique_ptr<StringMemoryBuffer> result(new StringMemoryBuffer); 46 std::unique_ptr<StringMemoryBuffer> result(new StringMemoryBuffer);
47 result->Copy(buffer); 47 result->Copy(buffer);
48 return result.release(); 48 return result.release();
49 } 49 }
50
51
52 IMemoryBuffer* StringMemoryBuffer::CreateFromCopy(const std::string& buffer,
53 size_t start /* inclusive */,
54 size_t end /* exclusive */)
55 {
56 std::unique_ptr<StringMemoryBuffer> result(new StringMemoryBuffer);
57 result->Copy(buffer, start, end);
58 return result.release();
59 }
50 } 60 }