Skip to the content.

Home > rsc-tools > unpackRsc

unpackRsc() function

Unpack an RSC file into the entries that compose it, including holes in the output

Signature:

export declare function unpackRsc(arrayBuffer: ArrayBufferLike, options?: UnpackOptions<true>): MaybeEmptyRscEntry[];

Parameters

Parameter Type Description
arrayBuffer ArrayBufferLike Buffer containing an RSC file
options UnpackOptions<true> (Optional) Options for unpacking

Returns:

MaybeEmptyRscEntry[]

The entries contained within the arrayBuffer parameter

Remarks

This function creates views over the buffer passed as argument. Modifying the content of an entry will modify the buffer passed in this function and vice versa.