Skip to main content

Serializer

Serializer class for handling the serialization and deserialization of 3D model data. It uses the flatbuffers library for efficient data serialization and deserialization.

Methods

export()

export(group): Uint8Array

Exports the FragmentsGroup to a flatbuffer binary file.

Parameters

ParameterTypeDescription
groupFragmentsGroupThe FragmentsGroup to be exported.

Returns

Uint8Array

The flatbuffer binary file as a Uint8Array.


import()

import(bytes): FragmentsGroup

Constructs a FragmentsGroup object from the given flatbuffers data.

Parameters

ParameterTypeDescription
bytesUint8ArrayThe flatbuffers data as Uint8Array.

Returns

FragmentsGroup

A FragmentsGroup object constructed from the flatbuffers data.