read_hex | R Documentation |
Read bytes as hexadecimal strings
read_hex(con, n = 1, size = 1, endian = NULL)
con |
Connection object or raw vector. Connection objects can be
created with |
n |
Number of hexadecimal strings to read. Default: 1 |
size |
size in bytes of each string. Default: 1 |
endian |
Ordering of bytes within the file when reading multi-byte values.
Possible values: 'big' or 'little'.
Default: NULL indicates that
endian option should be retrieved from the connection object if possible
(where the user has used |
vector of hexadecimal character strings
Other data input functions:
read_f64()
,
read_raw()
,
read_str()
,
read_uint8()
,
scan_dbl()
con <- rawConnection(as.raw(1:4))
read_hex(con, n = 4, size = 1)
close(con)
con <- rawConnection(as.raw(1:4))
read_hex(con, n = 1, size = 4)
close(con)
con <- rawConnection(as.raw(1:4))
read_hex(con, n = 2, size = 2, endian = "big")
close(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.