API Reference > geometry-core > Serialization > BentleyGeometryFlatBuffer > bytesToGeometry bytesToGeometry MethodStatic Deserialize bytes from a flatbuffer. bytesToGeometry(justTheBytes: Uint8Array, hasVersionSignature: boolean = false): undefined | GeometryQuery | GeometryQuery[] Parameter Type Description justTheBytes Uint8Array FlatBuffer bytes as created by BGFBWriter.createFlatBuffer (g); hasVersionSignature boolean Returns - undefined | GeometryQuery | GeometryQuery[] Defined in serialization/BentleyGeometryFlatBuffer.ts Line 31 Last Updated: 12 June, 2024