VirtualFileSystem.VFSCore.IsBitmapAllocated C# (CSharp) Method

IsBitmapAllocated() private method

位图指定位置是否已被分配
private IsBitmapAllocated ( UInt32 bitmap, UInt32 index ) : System.Boolean
bitmap System.UInt32
index System.UInt32
return System.Boolean
        private Boolean IsBitmapAllocated(UInt32[] bitmap, UInt32 index)
        {
            if ((bitmap[index / 32] & (uint)1 << (int)(index % 32)) == 0)
            {
                return false;
            }
            else
            {
                return true;
            }
        }