Files
speckle-sharp-connectors/Importers/Ifc/Speckle.Importers.Ifc/Ara3D.StepParser/StepRawInstance.cs
T
Adam Hathcock d76865e621 moving IFC to connectors repo (#488)
* First pass of moving IFC to connectors repo

* Fix some errors and ignore others

* fix namespaces and exceptions

* fix namespaces

* formatting

* Fix namespaces and move stuff

* add linux ci

* more csproj changes

* importer stuff will be the nuget

* add pack version and to Local sln

* do a nuget push on main

* fix restore
2025-01-15 12:01:45 +00:00

21 lines
637 B
C#

using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Ara3D.Buffers;
namespace Speckle.Importers.Ifc.Ara3D.StepParser;
/// <summary>
/// Contains information about where an instance is within a file.
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 1)]
[method: MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly unsafe struct StepRawInstance(uint id, ByteSpan type, byte* ptr)
{
public readonly uint Id = id;
public readonly ByteSpan Type = type;
public readonly byte* Ptr = ptr;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public bool IsValid() => Id > 0;
}