API Reference > geometry-core > Serialization > BentleyGeometryFlatBuffer BentleyGeometryFlatBuffer Class Top level entries to convert between GeometryQuery types and FlatBuffer Bytes. Methods Name Description bytesToGeometry(justTheBytes: Uint8Array, hasVersionSignature: boolean = false): undefined | GeometryQuery | GeometryQuery[] Static Deserialize bytes from a flatbuffer. geometryToBytes(data: GeometryQuery | GeometryQuery[], addVersionSignature: boolean = false): undefined | Uint8Array Static Serialize bytes to a flatbuffer. Defined in serialization/BentleyGeometryFlatBuffer.ts Line 16 Last Updated: 11 June, 2024