These are integer literals encountered in the type stream. If the value is positive and less than LF_NUMERIC (1 << 15), it is emitted directly in Data. Otherwise, it has a tag like LF_CHAR that indicates the bitwidth and sign of the numeric data.

This method assumes that all records are id records, and there are no Type records present. However, since Id records can refer back to Type records, this method assumes that the referenced type records have also been merged into another type stream (for example using the above method), and accepts the mapping from source to dest for that stream so that it can re-write the type record mappings accordingly.

Parameters

Dest

The table to store the re-written id records into.

Types

The mapping to use for the type records that these id records refer to.

SourceToDest

A vector, indexed by the TypeIndex in the source id stream, that contains the index of the corresponding id record in the destination stream.

Ids

The collection of id records to merge in.

Returns

Error::success() if the operation succeeded, otherwise an appropriate error code.