forked from ehmicky/Notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrange-parser.node.txt
More file actions
17 lines (14 loc) · 1.01 KB
/
range-parser.node.txt
File metadata and controls
17 lines (14 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
┏━━━━━━━━━━━━━━━━━━┓
┃ RANGE-PARSER ┃
┗━━━━━━━━━━━━━━━━━━┛
VERSION ==> #1.2.1
RANGE-PARSER(NUM, STR[, OPTS])->VAL #Parses Range: TYPE=RANGE,... [C]
#NUM is resource byte size.
#VAL can be:
# - NUM (error)
# - -2: Range [C] malformed
# - -1: goes beyond resource size
# - OBJ_ARR:
# - OBJ_ARR.type 'TYPE' (e.g. 'bytes')
# - OBJ.start|end NUM2 (index starts at 0)
#If OPTS.combine true (def: false), ranges will be merged if possible