Show / Hide Table of Contents

# Struct BitSpan

###### Namespace: LiteEntitySystem.Internal

###### Assembly: LiteEntitySystem.dll

##### Syntax

    public readonly ref struct BitSpan

### Constructors

#### BitSpan(byte*, int)

##### Declaration

    public BitSpan(byte* bitRegion, int bitCount)

##### Parameters

Type | Name | Description
--- | --- | ---
byte* | bitRegion |
int | bitCount |

#### BitSpan(byte[], int, int)

##### Declaration

    public BitSpan(byte[] bitRegion, int offset, int bitCount)

##### Parameters

Type | Name | Description
--- | --- | ---
byte[] | bitRegion |
int | offset |
int | bitCount |

#### BitSpan(Span<byte>)

##### Declaration

    public BitSpan(Span<byte> bitRegion)

##### Parameters

Type | Name | Description
--- | --- | ---
Span<byte> | bitRegion |

#### BitSpan(Span<byte>, int)

##### Declaration

    public BitSpan(Span<byte> bitRegion, int bitCount)

##### Parameters

Type | Name | Description
--- | --- | ---
Span<byte> | bitRegion |
int | bitCount |

### Fields

#### BitCount

##### Declaration

    public readonly int BitCount

##### Field Value

Type | Description
--- | ---
int |

#### ByteCount

##### Declaration

    public readonly int ByteCount

##### Field Value

Type | Description
--- | ---
int |

### Properties

#### this[int]

##### Declaration

    public bool this[int index] { get; set; }

##### Parameters

Type | Name | Description
--- | --- | ---
int | index |

##### Property Value

Type | Description
--- | ---
bool |

### Methods

#### Clear()

##### Declaration

    public void Clear()

#### ToString()

Returns the fully qualified type name of this instance.

##### Declaration

    public override string ToString()

##### Returns

Type | Description
--- | ---
string | The fully qualified type name.

##### Overrides

System.ValueType.ToString()