Print Method for Block of Binary Data
This function displays a "rawBlock"
object.
Each line of output contains a binary offset, the binary data
in a raw machine format, and an interpretation of
the data in a human-readable format.
The object contains parameters controlling the format
of the display, some of which may be overridden in
the call to print
.
## S3 method for class 'rawBlock' print(x, width = NULL, machine = NULL, sep1 = " : ", sep2 = " | ", showOffset = TRUE, showHuman = TRUE, page = FALSE, ...)
x |
A |
width |
The number of bytes to display per line of output. |
machine |
The machine format to display;
either |
sep1 |
A separator to insert between the block offset and the machine format. |
sep2 |
A separator to insert between the machine format and the human-readable format. |
showOffset |
If |
showHuman |
If |
page |
If |
... |
Other arguments to |
If either width
or machine
is NULL
,
the relevant value is taken from the
"rawBlock"
object. The human-readable format is
taken from the "rawBlock"
object.
Paul Murrell
fileBlock <- readRaw(hexViewFile("rawTest.txt")) print(fileBlock) print(fileBlock, width=8) print(fileBlock, machine="binary", width=4)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.