Skip to the content.

Home > rsc-tools > unpackRsc

unpackRsc() function

Unpack an RSC file into the entries that compose it

Signature:

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

Parameters

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

Returns:

RscEntry[]

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.