static BUILD_FALLBACK_INDEX(mapBuf, flagData) {
        const types = Object.entries(flagData).filter(([key, value]) => {
            return value === true;
        }).map(([key, value]) => {
            return parseInt(key);
        });
        const foundChunks = [];
        let offset = 0;

        types.forEach((type) => {
            switch (type) {
                case TYPE_FLAGS.ROBOT_STATUS:
                    foundChunks.push({
                        type: TYPE_FLAGS.ROBOT_STATUS,
                        view: mapBuf.subarray(offset, offset + 48)
                    });

                    offset += 48;
                    break;
                case TYPE_FLAGS.MAP_IMAGE: {
                    const header = ThreeIRobotixMapParser.PARSE_IMAGE_BLOCK_HEADER(mapBuf.subarray(offset));

                    if (
                        Number.isInteger(header.height) && Number.isInteger(header.width) &&
                        header.height > 0 && header.width > 0
                    ) {
                        foundChunks.push({
                            type: TYPE_FLAGS.MAP_IMAGE,
                            view: mapBuf.subarray(offset, offset + header.blockLength)
                        });
                    }

                    offset += header.blockLength;

                    break;
                }
                case TYPE_FLAGS.PATH: {
                    const header = ThreeIRobotixMapParser.PARSE_PATH_BLOCK_HEADER(mapBuf.subarray(offset));

                    foundChunks.push({
                        type: TYPE_FLAGS.PATH,
                        view: mapBuf.subarray(offset, offset + header.blockLength)
                    });

                    offset += header.blockLength;

                    break;
                }
            }
        });

        return foundChunks;
    }
This is used for temporary maps (e.g., on initial cleanup when there are no segments yet)

@param {Buffer} mapBuf
@param {object} flagData
@return {Array<Block>}