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
Codebyte-
Reference type code (upper 4 bits of the first byte).
Counterbyte-
Number of payload bytes that follow.
Valueulong-
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
Counter
Number of payload bytes that follow.
public byte Counter { get; init; }Property Value
Value
Handle value, big-endian across the payload bytes.
public ulong Value { get; init; }Property Value
Methods
ToString()
The handle value in hex, as AutoCAD displays handles.
public override string ToString()