public Geometry Read() { //Initialize reader m_index = 0; m_endian = BitConverter.ToBoolean(extractBytes(m_index, 1, ref m_index), 0) ? EndianType.LITTLE_ENDIAN : EndianType.BIG_ENDIAN; DimensionType dimension = DimensionTypeExtensions.Parse(ReadNextInt(), out GeometryType geometryType); return(Read(geometryType, dimension)); }
/// <summary> /// Read the dimension of the Geometry. /// </summary> /// <returns></returns> public DimensionType ReadDimension() { string dim = readUntilToken(m_dimensions.Reverse().ToArray()); return(DimensionTypeExtensions.Parse(dim)); }