Assert
|
- |
asserts equal
|
equal |
asserts allEqual for objects
|
allEqual |
asserts allEqual for arrays
|
allEqual |
asserts deepEqual
|
deepEqual |
asserts includes for arrays
|
includes |
asserts includes for objects
|
includes |
asserts inBounds
|
inBounds |
asserts via callback
|
callback |
asserts arrayLength
|
arrayLength |
asserts exists
|
exists |
asserts bitmask
|
bitmask |
CorrodeBase - Aborts
|
CorrodeBase#jobLoop |
correctly aborts too short int16
|
- |
correctly aborts too short int32
|
- |
correctly aborts too short int64
|
- |
correctly aborts too short float
|
- |
correctly aborts too short double
|
- |
correctly aborts too short string
|
- |
correctly aborts too short buffer
|
- |
correctly aborts too short skip
|
- |
CorrodeBase - Edge Cases
|
CorrodeBase |
correctly overrides primitves
|
CorrodeBase#jobLoop |
considers strings as length as references to vars - strings
|
CorrodeBase#string |
considers strings as length as references to vars - buffers
|
CorrodeBase#buffer |
considers strings as length as references to vars - skip
|
CorrodeBase#skip |
throws errors for invalid variables when using strings as length as references to vars - strings
|
CorrodeBase#string |
throws errors for invalid variables when using strings as length as references to vars - buffers
|
CorrodeBase#buffer |
throws errors for invalid variables when using strings as length as references to vars - skip
|
CorrodeBase#skip |
has the correct offset
|
CorrodeBase#chunkOffset
CorrodeBase#streamOffset |
CorrodeBase#options
|
CorrodeBase#options |
correctly finishes primitive jobs on EOF
|
CorrodeBase#options.finishJobsOnEOF |
correctly finishes tap jobs on EOF
|
CorrodeBase#options.finishJobsOnEOF |
correctly finishes loop jobs on EOF
|
CorrodeBase#options.finishJobsOnEOF |
correctly finishes nested jobs on EOF
|
CorrodeBase#options.finishJobsOnEOF |
correctly rests in the current state when finishJobsOnEOF is false - tap
|
CorrodeBase#options.finishJobsOnEOF |
correctly rests in the current state when finishJobsOnEOF is false - loop
|
CorrodeBase#options.finishJobsOnEOF |
should not be disturbed, when changing the loopIdentifier
|
CorrodeBase#options.loopIdentifier |
flushes when isSeeking = false
|
CorrodeBase#isSeeking |
prevents flushes when isSeeking = true
|
CorrodeBase#isSeeking |
allows mixing of isSeeking-modes
|
CorrodeBase#isSeeking |
CorrodeBase#loop - anonymous
|
CorrodeBase#loop |
anonymous loop (overriding)
|
- |
anonymous loop (scope)
|
- |
anonymous loop (no discard, no finish)
|
- |
anonymous loop (no discard, finish after)
|
- |
anonymous loop (no discard, finish before)
|
- |
anonymous loop (discard before, no finish)
|
- |
anonymous loop (discard after, no finish)
|
- |
anonymous loop (discard deep, no finish)
|
CorrodeBase#options.anonymousLoopDiscardDeep |
anonymous loop (discard shallow, no finish)
|
CorrodeBase#options.anonymousLoopDiscardDeep |
anonymous loop (discard, finish before)
|
- |
anonymous loop (discard, finish after)
|
- |
CorrodeBase#loop - named
|
CorrodeBase#loop |
named loop
|
- |
named loop (scope)
|
- |
named loop (no discard, finish after)
|
- |
named loop (no discard, finish before)
|
- |
named loop (discard before, no finish)
|
- |
named loop (discard after, no finish)
|
- |
named loop (discard, finish before)
|
- |
named loop (discard, finish after)
|
- |
named loops replaced var
|
- |
CorrodeBase - Primitives
|
CorrodeBase |
reads int8
|
CorrodeBase#int8
CorrodeBase#int8le
CorrodeBase#int8be
CorrodeBase#uint8
CorrodeBase#uint8le
CorrodeBase#uint8be |
reads int16
|
CorrodeBase#int16
CorrodeBase#int16le
CorrodeBase#int16be
CorrodeBase#uint16
CorrodeBase#uint16le
CorrodeBase#uint16be |
reads int32
|
CorrodeBase#int32
CorrodeBase#int32le
CorrodeBase#int32be
CorrodeBase#uint32
CorrodeBase#uint32le
CorrodeBase#uint32be |
reads int64
|
CorrodeBase#int64
CorrodeBase#int64le
CorrodeBase#int64be
CorrodeBase#uint64
CorrodeBase#uint64le
CorrodeBase#uint64be |
reads float
|
CorrodeBase#float
CorrodeBase#floatle
CorrodeBase#floatbe |
reads double
|
CorrodeBase#double
CorrodeBase#doublele
CorrodeBase#doublebe |
reads utf8-strings
|
Corrode#string |
reads strings, regardless of the underlying buffer
|
Corrode#string |
reads buffers
|
Corrode#buffer |
reads buffers, regardless of the underlying buffer
|
Corrode#buffer |
CorrodeBase#jobs
|
CorrodeBase#jobs |
pushes int8 jobs
|
CorrodeBase#int8
CorrodeBase#int8le
CorrodeBase#int8be
CorrodeBase#uint8
CorrodeBase#uint8le
CorrodeBase#uint8be |
pushes int16 jobs
|
CorrodeBase#int16
CorrodeBase#int16le
CorrodeBase#int16be
CorrodeBase#uint16
CorrodeBase#uint16le
CorrodeBase#uint16be |
pushes int32 jobs
|
CorrodeBase#int32
CorrodeBase#int32le
CorrodeBase#int32be
CorrodeBase#uint32
CorrodeBase#uint32le
CorrodeBase#uint32be |
pushes int64 jobs
|
CorrodeBase#int64
CorrodeBase#int64le
CorrodeBase#int64be
CorrodeBase#uint64
CorrodeBase#uint64le
CorrodeBase#uint64be |
pushes float jobs
|
CorrodeBase#float
CorrodeBase#floatle
CorrodeBase#floatbe |
pushes double jobs
|
CorrodeBase#double
CorrodeBase#doublele
CorrodeBase#doublebe |
pushes options.endianness correct jobs
|
CorrodeBase#int8
CorrodeBase#uint8
CorrodeBase#int16
CorrodeBase#uint16
CorrodeBase#int32
CorrodeBase#uint32
CorrodeBase#int64
CorrodeBase#uint64
CorrodeBase#float
CorrodeBase#double
CorrodeBase#options.endianness |
pushes buffer jobs
|
Corrode#buffer |
pushes string jobs
|
Corrode#string |
pushes push jobs
|
Corrode#push |
pushes pop jobs
|
Corrode#pop |
pushes skip jobs
|
Corrode#skip |
pushes loop jobs
|
Corrode#loop |
pushes tap jobs
|
Corrode#tap |
queues and unqueues jobs
|
Corrode#queueJobs |
removes read jobs
|
Corrode#removeReadJobs |
throws error on unknown job
|
Corrode#jobLoop |
CorrodeBase#skip
|
CorrodeBase#skip |
allows us to skip content
|
- |
prevents us from unskipping content with isSeeking = false
|
CorrodeBase#isSeeking |
allows us to unskip content with isSeeking = true
|
CorrodeBase#isSeeking |
prevents us from unskipping too far
|
- |
CorrodeBase#varStack
|
CorrodeBase#varStack |
pushes and pops
|
CorrodeBase#push |
denies popping the root-layer
|
CorrodeBase#pop |
pushes back into old layers
|
CorrodeBase#push
CorrodeBase#pop |
automatically unpushes as it unwinds
|
CorrodeBase#push
CorrodeBase#finishRemainingJobs |
denies pushing into non-object vars
|
CorrodeBase#options.strictObjectMode |
CorrodeBase#tap
|
CorrodeBase#tap |
taps into the current state
|
- |
taps into a named var
|
- |
re-taps into existing objects
|
- |
supports custom arguments in anonymous taps
|
- |
supports custom arguments in named taps
|
- |
does not allow tapping into other objects
|
CorrodeBase#options.strictObjectMode |
allows tapping into other objects when strictObjectMode is false
|
CorrodeBase#options.strictObjectMode |
Corrode#ext
|
Corrode#addExtension
Corrode#ext |
supports extensions
|
- |
supports extensions with return values and scope-access
|
- |
supports extensions with return and read
|
- |
supports extensions with return and read
|
- |
supports calling extensions within extensions
|
- |
Corrode - Helpers
|
Corrode |
coverage fix
|
Corrode#debug |
converts from buffer
|
Corrode#fromBuffer |
Corrode#pointer
|
Corrode#pointer |
retrieves from array
|
- |
retrieves from object
|
- |
retrieves from string
|
- |
Corrode#position
|
Corrode#position |
jumps to absolute positions
|
- |
prevents jumps to invalid negative positions
|
- |
allows jumps to future positive positions
|
- |
Corrode#repeat
|
Corrode#repeat |
repeats anonymously
|
- |
repeats named
|
- |
repeats anonymously as long as possible
|
- |
repeats named as long as possible
|
- |
repeats anonymously with the right scope
|
- |
repeats named with the right scope
|
- |
repeats anonymously with a string as length
|
- |
repeats named with a string as length
|
- |
shortcuts anonymous repeats
|
- |
shortcuts named repeats
|
- |
repeats (no discard, finish after)
|
- |
repeats (no discard, finish before)
|
- |
repeats (discard before, no finish)
|
- |
repeat (discard after, no finish)
|
- |
repeats (discard, finish before)
|
- |
repeats (discard, finish after)
|
- |
repeats replaced var
|
- |
repeats 0 times direct
|
- |
repeats 0 times with a string as length
|
- |
Corrode#terminatedBuffer
|
Corrode#terminatedBuffer |
retrieves a terminated buffer
|
- |
retrieves a terminated buffer spanned over multiple buffers
|
- |
retrieves a terminated buffer spanned over multiple buffers with options
|
- |
retrieves a terminated buffer in a complex parser
|
- |
Corrode#terminatedString
|
Corrode#terminatedString |
retrieves a terminated string
|
- |
retrieves a terminated string spanned over multiple buffers
|
- |
retrieves a terminated string with options
|
- |
accepts custom encoding
|
- |
Map
|
- |
maps via callback
|
map |
maps via get - array
|
get |
maps via get - object
|
get |
maps via findAll
|
findAll |
maps via find
|
find |
maps via abs
|
abs |
maps via invert
|
invert |
maps via trim
|
trim |
pushes
|
push |
maps via bitmask
|
bitmask |
maps single values via bitmask
|
bitmask |
Utils
|
- |
binds object with tap
|
tapBindObject |
binds object with data
|
bindObject |
VariableStack
|
VariableStack |
starts as an empty object
|
VariableStack |
allows properties on layer 0
|
VariableStack#constructor |
allows object-descension
|
VariableStack#push
VariableStack#top
VariableStack#value |
haves correct value-shortcut
|
VariableStack#push |
allows deep-adding
|
VariableStack#push |
allows object-popping
|
VariableStack#push
VariableStack#pop |
allows object-popping with values
|
VariableStack#push
VariableStack#pop |
allows multiple pushed objects
|
VariableStack#push
VariableStack#pop |
allows object-repushing
|
VariableStack#push
VariableStack#pop |
allows array-repushing
|
VariableStack#push |
allows primitive-repushing
|
VariableStack#push |
repushes the same instance
|
VariableStack#push
VariableStack#pop |
allows object-repushing on user-defined objects
|
VariableStack#push
VariableStack#value |
allows layer-peeking & allPop
|
VariableStack#peek
VariableStack#peekLayer
VariableStack#popAll |
properly supports layer-peeking
|
VariableStack#peek |
prevents invalid popping
|
VariableStack#pop |
prevents invalid peeking
|
VariableStack#peek |
allows array pushing
|
VariableStack#push |
allows full primitive value-replacing
|
VariableStack#push |
allows full object value-replacing
|
VariableStack#push |
allows full array value-replacing
|
VariableStack#push |
updates the parent-layers value
|
VariableStack#set |