d76865e621
* 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
21 lines
637 B
C#
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;
|
|
}
|