Table of Contents

Class DwgHandle

Namespace
DwgIO.Model
Assembly
DwgIO.dll

A DWG handle: 4-bit code + 4-bit byte counter + up to 8 bytes of payload.

public sealed record DwgHandle : IEquatable<DwgHandle>

Inheritance

Implements

Inherited Members

Constructors

DwgHandle(byte, byte, ulong)

A DWG handle: 4-bit code + 4-bit byte counter + up to 8 bytes of payload.

public DwgHandle(byte Code, byte Counter, ulong Value)

Parameters

Code byte

Reference type code (upper 4 bits of the first byte).

Counter byte

Number of payload bytes that follow.

Value ulong

Handle value, big-endian across the payload bytes.

Properties

Code

Reference type code (upper 4 bits of the first byte).

public byte Code { get; init; }

Property Value

byte

Counter

Number of payload bytes that follow.

public byte Counter { get; init; }

Property Value

byte

Value

Handle value, big-endian across the payload bytes.

public ulong Value { get; init; }

Property Value

ulong

Methods

ToString()

The handle value in hex, as AutoCAD displays handles.

public override string ToString()

Returns

string