1
0

Added range function in IdRange

Added source accessor function in TLEdge
This commit is contained in:
Jacob Chang
2017-02-02 10:35:35 -08:00
parent 8225676a86
commit 83a83c778a
2 changed files with 11 additions and 0 deletions

View File

@ -39,6 +39,8 @@ case class IdRange(start: Int, end: Int)
def shift(x: Int) = IdRange(start+x, end+x)
def size = end - start
def range = start until end
}
// An potentially empty inclusive range of 2-powers [min, max] (in bytes)