1 /* Copyright (C) 2011-2021 by The D Language Foundation, All Rights Reserved
2  * written by Walter Bright
3  * http://www.digitalmars.com
4  * Distributed under the Boost Software License, Version 1.0.
5  * http://www.boost.org/LICENSE_1_0.txt
6  * https://github.com/dlang/dmd/blob/master/src/dmd/root/bitarray.h
7  */
8 
9 #pragma once
10 
11 #include "dsystem.h"
12 #include "object.h"
13 #include "rmem.h"
14 
15 struct BitArray
16 {
BitArrayBitArray17     BitArray()
18       : len(0)
19       , ptr(NULL)
20     {}
21 
~BitArrayBitArray22     ~BitArray()
23     {
24         mem.xfree(ptr);
25     }
26 
27     d_size_t len;
28     d_size_t *ptr;
29 
30 private:
31     BitArray(const BitArray&);
32 };
33