private Boolean IsBitmapAllocated(UInt32[] bitmap, UInt32 index) { if ((bitmap[index / 32] & (uint)1 << (int)(index % 32)) == 0) { return false; } else { return true; } }