mixedBlock: Create a mixedBlock Object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/memBlock.R

Description

This function creates a "mixedBlock" object, which is a description of a block of binary data. This can be used as part of a description of a binary format.

Usage

1

Arguments

...

One or more "memBlock" objects.

Details

A "mixedBlock" object describes a block of binary data that consists of a series of sub-blocks. Each sub-block can be any type of "memBlock" object.

Value

A "mixedBlock" object.

Author(s)

Paul Murrell

See Also

memFormat readFormat memBlock atomicBlock vectorBlock lengthBlock markedBlock

Examples

1
2
# A line of text followed by a four-byte integer
mixedBlock(ASCIIline, integer4)

Example output

[[1]]
list()
attr(,"class")
[1] "ASCIIlineBlock" "memBlock"      

[[2]]
$type
[1] "int"

$width
NULL

$machine
[1] "hex"

$size
[1] 4

$endian
[1] "little"

$signed
[1] TRUE

attr(,"class")
[1] "atomicBlock" "memBlock"   

attr(,"class")
[1] "mixedBlock" "memBlock"  

hexView documentation built on May 2, 2019, 7:02 a.m.