API Reference > geometry-core > Serialization > BGFBAccessors > BGFBAccessors.LineSegment > getRootAsLineSegment getRootAsLineSegment MethodStatic getRootAsLineSegment(bb: ByteBuffer, obj?: BGFBAccessors.LineSegment): BGFBAccessors.LineSegment Parameter Type Description bb ByteBuffer obj BGFBAccessors.LineSegment Returns - BGFBAccessors.LineSegment LineSegment Defined in serialization/BGFBAccessors.ts Line 1282 Last Updated: 12 June, 2024