|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
An available range
Field Summary | |
---|---|
int |
CHUNK_MAX_GROWTH
Maximum chunk growth power |
int |
CHUNK_START_POWER
Smallest number of bytes |
long |
End
Ending byte number |
bool |
Filled
Is range filled |
bool |
Needed
Is range needed |
long | origEnd |
long | origStart |
System.Collections.ArrayList | sources |
long |
Start
Start byte number |
Constructor Summary | |
---|---|
ResourceAvailRange(long start, long end) Constructor |
|
ResourceAvailRange(long start, long end, bool needed, bool filled) Constructor |
Property Summary | |
---|---|
int |
Count
Gets the number of sources for this range |
bool |
IsEmpty
Is the range empty? |
bool |
IsMarker
Is range a marker |
bool |
IsValid
Is the range's bounds valid |
string |
Key
Returns a string representation Start-End |
long |
Length
Gets the number of bytes represented by the range |
Method Summary | |
---|---|
void |
AddSource(Naanou.ResourceExchange.Source.Manifest source) Adds a new source |
void |
AddSources(Naanou.ResourceExchange.ResourceAvailRange range) Adds all the sources from a particular range |
Naanou.ResourceExchange.ResourceAvailRange |
GetChunk(int generation) Skims a chunk of a certain size off this range |
Naanou.ResourceExchange.Source.Manifest[] |
GetSources() Gets an array of sources this range has (subject to change) |
System.Collections.ArrayList |
GetSourcesArrayList() Gets the sources array list |
bool |
Overlaps(Naanou.ResourceExchange.ByteRange range) Does this range overlap |
Naanou.ResourceExchange.Source.Manifest |
RemoveSource() Removes a source and returns it |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
public int CHUNK_MAX_GROWTH
Maximum chunk growth power
public int CHUNK_START_POWER
Smallest number of bytes
public long End
Ending byte number
public bool Filled
Is range filled
public bool Needed
Is range needed
private long origEnd
private long origStart
private System.Collections.ArrayList sources
public long Start
Start byte number
Constructor Detail |
---|
public ResourceAvailRange(long start, long end)
Constructor
Parameters:
start
- end
- public ResourceAvailRange(long start, long end, bool needed, bool filled)
Constructor
Parameters:
start
- end
- needed
- filled
- Property Detail |
---|
public int Count
Gets the number of sources for this range
public bool IsEmpty
Is the range empty?
public bool IsMarker
Is range a marker
public bool IsValid
Is the range's bounds valid
public string Key
Returns a string representation Start-End
public long Length
Gets the number of bytes represented by the range
Method Detail |
---|
public void AddSource(Naanou.ResourceExchange.Source.Manifest source)
Adds a new source
Parameters:
source
- public void AddSources(Naanou.ResourceExchange.ResourceAvailRange range)
Adds all the sources from a particular range
Parameters:
range
- Rangepublic Naanou.ResourceExchange.ResourceAvailRange GetChunk(int generation)
Skims a chunk of a certain size off this range
Parameters:
generation
- System.InvalidOperationException
- If range is a markerpublic Naanou.ResourceExchange.Source.Manifest[] GetSources()
Gets an array of sources this range has (subject to change)
Returns:
public System.Collections.ArrayList GetSourcesArrayList()
Gets the sources array list
Returns:
public bool Overlaps(Naanou.ResourceExchange.ByteRange range)
Does this range overlap
Parameters:
range
- public Naanou.ResourceExchange.Source.Manifest RemoveSource()
Removes a source and returns it
Returns:
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |