1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <package/hpkg/PoolBuffer.h> 8 9 #include <stdlib.h> 10 11 12 namespace BPackageKit { 13 14 namespace BHPKG { 15 16 namespace BPrivate { 17 18 19 PoolBuffer::PoolBuffer(size_t size) 20 : 21 fOwner(NULL), 22 fBuffer(malloc(size)), 23 fSize(size), 24 fCached(false) 25 { 26 } 27 28 29 PoolBuffer::~PoolBuffer() 30 { 31 free(fBuffer); 32 } 33 34 35 } // namespace BPrivate 36 37 } // namespace BHPKG 38 39 } // namespace BPackageKit 40