Méthode | Description | |
---|---|---|
AllFlagsSet ( byte uptoChunkIndexInclusive ) : bool |
Returns true if all bit flags up to the provided uptoChunkIndexInclusive are set to true
|
|
ChunkFlags ( byte intialState ) : System |
Initialises the ChunkFlags. The initial state is typically 0 or totalNumChunks
|
|
ClearAllFlags ( ) : void |
Sets all chunk flags to unset.
|
|
FlagSet ( byte chunkIndex ) : bool |
Returns true if the provided chunk is available. Zero indexed from least significant bit.
|
|
NumCompletedChunks ( ) : byte |
Returns the number of completed chunk
|
|
SetFlag ( byte chunkIndex, bool state = true ) : void |
Sets the bit flag to 1 which corresponds with the provided chunk index. Zero indexed from least significant bit.
|
|
UpdateFlags ( |
Updates local chunk flags with those provided.
|
Méthode | Description | |
---|---|---|
ChunkFlags ( ) : System |
public AllFlagsSet ( byte uptoChunkIndexInclusive ) : bool | ||
uptoChunkIndexInclusive | byte | The chunk index up to which the flags should be checked |
Résultat | bool |
public ChunkFlags ( byte intialState ) : System | ||
intialState | byte | The initial state of the ChunkFlags |
Résultat | System |
public FlagSet ( byte chunkIndex ) : bool | ||
chunkIndex | byte | The chunk index flag to check |
Résultat | bool |
public SetFlag ( byte chunkIndex, bool state = true ) : void | ||
chunkIndex | byte | The chunk index to set |
state | bool | The state of the flag |
Résultat | void |
public UpdateFlags ( |
||
latestChunkFlags | The new chunk flags | |
Résultat | void |