BPicture: Fix archive constructor.
[haiku.git] / src / kits / package / hpkg / PoolBuffer.cpp
blobd3461add480e8b46b59ce7abdb2ff52d693a3ae3
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <package/hpkg/PoolBuffer.h>
9 #include <stdlib.h>
12 namespace BPackageKit {
14 namespace BHPKG {
16 namespace BPrivate {
19 PoolBuffer::PoolBuffer(size_t size)
21 fOwner(NULL),
22 fBuffer(malloc(size)),
23 fSize(size),
24 fCached(false)
29 PoolBuffer::~PoolBuffer()
31 free(fBuffer);
35 } // namespace BPrivate
37 } // namespace BHPKG
39 } // namespace BPackageKit