Table of Contents

Class VBLongPtrValue

Namespace
RDCore.SDK.Model.Values.Intrinsic
Assembly
RDCore.SDK.dll

Represents a LongPtr value.

public sealed record VBLongPtrValue : VBNumericTypedValue, IEquatable<VBTypedValue>, IEquatable<VBNumericTypedValue>, IVBTypedValue<VBLongPtrValue, long>, IEquatable<IVBTypedValue<VBLongPtrValue, long>>, INumericValue<VBLongPtrValue>, INumericValue, IEquatable<VBLongPtrValue>
Inheritance
VBLongPtrValue
Implements
Inherited Members
Extension Methods

Constructors

VBLongPtrValue(IBindingHandle)

public VBLongPtrValue(IBindingHandle handle)

Parameters

handle IBindingHandle

VBLongPtrValue(IBindingHandle, bool)

A LongPtr value read from a cell, 4 or 8 bytes wide as is64Bit says.

public VBLongPtrValue(IBindingHandle handle, bool is64Bit)

Parameters

handle IBindingHandle

The cell the value is read from.

is64Bit bool

true for a 64-bit pointer; false for a 32-bit one.

Remarks

What CreateValue(IBindingHandle) and CreateValue(IBindingHandle) make: a value of the type that reads the cell. The cell holds an int for a 32-bit pointer and a long for a 64-bit one.

VBLongPtrValue(bool)

Represents a LongPtr value.

public VBLongPtrValue(bool Is64Bit)

Parameters

Is64Bit bool

Indicates whether the pointer is a 32-bit (false) or 64-bit (true) pointer.

VBLongPtrValue(int)

public VBLongPtrValue(int value)

Parameters

value int

VBLongPtrValue(long)

public VBLongPtrValue(long value)

Parameters

value long

Properties

Is64Bit

Indicates whether the pointer is a 32-bit (false) or 64-bit (true) pointer.

public bool Is64Bit { get; init; }

Property Value

bool

Size

The width of the pointer: 8 bytes for a 64-bit one, 4 for a 32-bit one, however the value was made.

public override int Size { get; }

Property Value

int

Value

Gets the underlying managed value corresponding to this typed value.

public long Value { get; }

Property Value

long

Methods

Equals(IVBTypedValue<VBLongPtrValue, long>?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IVBTypedValue<VBLongPtrValue, long>? other)

Parameters

other IVBTypedValue<VBLongPtrValue, long>

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.