Class VBLongPtrValue
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
handleIBindingHandle
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
handleIBindingHandleThe cell the value is read from.
is64Bitbool
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
Is64BitboolIndicates whether the pointer is a 32-bit (
false) or 64-bit (true) pointer.
VBLongPtrValue(int)
public VBLongPtrValue(int value)
Parameters
valueint
VBLongPtrValue(long)
public VBLongPtrValue(long value)
Parameters
valuelong
Properties
Is64Bit
Indicates whether the pointer is a 32-bit (false) or 64-bit (true) pointer.
public bool Is64Bit { get; init; }
Property Value
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
Value
Gets the underlying managed value corresponding to this typed value.
public long Value { get; }
Property Value
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
otherIVBTypedValue<VBLongPtrValue, long>An object to compare with this object.