Added range function in IdRange

Added source accessor function in TLEdge
This commit is contained in:
Jacob Chang committed 2017-02-02 12:35:57 -08:00
1 parent 8225676a86
commit 83a83c778a
2 files changed
+11

No files matched your search

@@ -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)