Package jmri.jmrix.loconet.sdf
Class SdfBuffer
java.lang.Object
jmri.jmrix.loconet.sdf.SdfBuffer
Provide tools for reading, writing and accessing Digitrax SPJ files.
Maintains several representations:
- A byte array of the SDF contents after assembly. This is not complete, as it can't contain information like contents, labels, etc. Nor can it distinguish certain options with identical values (e.g. several constants that boil down to a zero value)
- An array of nested SdfMacro objects. These contain more detailed representations of the macro source, in the limit containing the entire thing.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintbyte[]voidReload the byte buffer from the contained instruction objects(package private) voidbooleanmoreData()voidvoidsetAtIndex(int data) voidsetAtIndexAndInc(int data) toString()
-
Field Details
-
index
-
ops
-
buffer
byte[] buffer
-
-
Constructor Details
-
SdfBuffer
-
SdfBuffer
- Throws:
IOException
-
-
Method Details
-
resetIndex
-
getAtIndex
-
getAtIndexAndInc
-
moreData
-
setAtIndex
-
setAtIndexAndInc
-
loadByteArray
Reload the byte buffer from the contained instruction objects -
toString
-
getByteArray
-
getMacroList
-
loadMacroList
void loadMacroList()
-