Naanou.ResourceExchange
Structure ByteRange

Byte range

Field Summary
long End
         End byte (0-based)
long Start
         Start byte (0-based)

Constructor Summary
ByteRange(long start, long end)
         Constructor

Property Summary
bool IsValid
         Checks whether range is valid (Start less than or equal to End)
string Key
         Returns a string representation Start-End
long Length
         Gets the length of the range

Method Summary
bool Equals(Naanou.ResourceExchange.ByteRange range)

Methods inherited from class System.ValueType
Equals, GetHashCode, ToString

Methods inherited from class System.Object
Finalize, GetType, MemberwiseClone


Field Detail

End

public long End

End byte (0-based)


Start

public long Start

Start byte (0-based)

Constructor Detail

ByteRange

public ByteRange(long start,
                 long end)

Constructor

Parameters:
start - Start byte (0-based)
end - End byte (0-based)
Property Detail

IsValid

public bool IsValid

Checks whether range is valid (Start less than or equal to End)


Key

public string Key

Returns a string representation Start-End


Length

public long Length

Gets the length of the range

Method Detail

Equals

public bool Equals(Naanou.ResourceExchange.ByteRange range)