C# 클래스 System.Collections.BitArray

상속: ICollection, ICloneable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
And ( BitArray value ) : BitArray
BitArray ( BitArray bits ) : System.Diagnostics
BitArray ( bool values ) : System.Diagnostics
BitArray ( byte bytes ) : System.Diagnostics
BitArray ( int length ) : System.Diagnostics
BitArray ( int length, bool defaultValue ) : System.Diagnostics
Clone ( ) : object
CopyTo ( Array array, int index ) : void
Get ( int index ) : bool
GetEnumerator ( ) : IEnumerator
Not ( ) : BitArray
Or ( BitArray value ) : BitArray
Set ( int index, bool value ) : void
SetAll ( bool value ) : void
Xor ( BitArray value ) : BitArray
this ( int index ) : bool

비공개 메소드들

메소드 설명
BitArray ( ) : System.Diagnostics
GetArrayLength ( int n, int div ) : int

Used for conversion between different representations of bit array. Returns (n+(div-1))/div, rearranged to avoid arithmetic overflow. For example, in the bit to int case, the straightforward calc would be (n+31)/32, but that would cause overflow. So instead it's rearranged to ((n-1)/32) + 1, with special casing for 0. Usage: GetArrayLength(77, BitsPerInt32): returns how many ints must be allocated to store 77 bits.

메소드 상세

And() 공개 메소드

public And ( BitArray value ) : BitArray
value BitArray
리턴 BitArray

BitArray() 공개 메소드

public BitArray ( BitArray bits ) : System.Diagnostics
bits BitArray
리턴 System.Diagnostics

BitArray() 공개 메소드

public BitArray ( bool values ) : System.Diagnostics
values bool
리턴 System.Diagnostics

BitArray() 공개 메소드

public BitArray ( byte bytes ) : System.Diagnostics
bytes byte
리턴 System.Diagnostics

BitArray() 공개 메소드

public BitArray ( int length ) : System.Diagnostics
length int
리턴 System.Diagnostics

BitArray() 공개 메소드

public BitArray ( int length, bool defaultValue ) : System.Diagnostics
length int
defaultValue bool
리턴 System.Diagnostics

Clone() 공개 메소드

public Clone ( ) : object
리턴 object

CopyTo() 공개 메소드

public CopyTo ( Array array, int index ) : void
array Array
index int
리턴 void

Get() 공개 메소드

public Get ( int index ) : bool
index int
리턴 bool

GetEnumerator() 공개 메소드

public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

Not() 공개 메소드

public Not ( ) : BitArray
리턴 BitArray

Or() 공개 메소드

public Or ( BitArray value ) : BitArray
value BitArray
리턴 BitArray

Set() 공개 메소드

public Set ( int index, bool value ) : void
index int
value bool
리턴 void

SetAll() 공개 메소드

public SetAll ( bool value ) : void
value bool
리턴 void

Xor() 공개 메소드

public Xor ( BitArray value ) : BitArray
value BitArray
리턴 BitArray

this() 공개 메소드

public this ( int index ) : bool
index int
리턴 bool