BINPUTOBJ
Synopsis
Store a newRPL object into a binary data container
Description
The BINPUTOBJ
command stores a specified object into a binary data container, starting from an offset position; it's not possible to write data exceeding the container's size.
The BYTES
command returns the size of an object and proves useful for the computation of the offsets. In fact, there is no limit to the number of different objects that can be stored in a binary data container, provided they don't overlap.
Compatibility
BINPUTOBJ
is specific to newRPL and has no direct equivalent in userRPL.
Usage
Input
4: 3: BINDATA 3 AAAAAAAAAAAAAAAAAA 2: 0 1: (0,1) ………………………………………………………………………………………………………… BINPUTOBJ
Output
4: 3: 2: 1: BINDATA 3 AegAAqAOAAAUAOAAAZ …………………………………………………………………………………………………………
Related Commands
Command | Short Description | |
---|---|---|
MKBINDATA | Create binary data container object | NEW |
BINPUTB | Store bytes into binary data object | NEW |
BINGETB | Extract binary data as list of bytes | NEW |
BINPUTW | Store 32-bit words into binary data object | NEW |
BINGETW | Extract data from a binary data object as a list of 32-bit words | NEW |
BINPUTOBJ | Store an entire object into a binary data container | NEW |
BINGETOBJ | Extract an entire object from a binary data container | NEW |
BINMOVB | Copy binary data block into a binary data object | NEW |
BINMOVW | Copy 32-bit words between binary data objects | NEW |