2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
9 #include <SupportDefs.h>
19 bool AddBytes(const void* data
, size_t size
);
20 bool AddBits(const void* data
, uint64 bitSize
,
21 uint32 bitOffset
= 0);
22 bool AddZeroBits(uint64 bitSize
);
24 uint8
* Bytes() const { return fBytes
.Elements(); }
25 size_t Size() const { return fBytes
.Size(); }
26 size_t BitSize() const
27 { return Size() * 8 - fMissingBits
; }
38 #endif // BIT_BUFFER_H