Sizeof returns the size in bytes of the bit array and its components.
()
| 140 | |
| 141 | // Sizeof returns the size in bytes of the bit array and its components. |
| 142 | func (d BitArray) Sizeof() uintptr { |
| 143 | return unsafe.Sizeof(d) + uintptr(numBytesPerWord*cap(d.words)) |
| 144 | } |
| 145 | |
| 146 | // IsEmpty returns true iff the array is empty. |
| 147 | func (d BitArray) IsEmpty() bool { |