Click or drag to resize

OidShort Structure

The short object identifier containing a 16 bit page part and a 16 bit page part. This is used for short references within a single databases.

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
[SerializableAttribute]
public struct OidShort : IComparable<OidShort>, 
	IEqualityComparer<OidShort>

The OidShort type exposes the following members.

Constructors
  NameDescription
Public methodOidShort(UInt32)
Constructs an OidShort given a 32bit number
Public methodOidShort(UInt64)
Constructs an OidShort given a 64bit number by using the 32 lower bits
Top
Properties
  NameDescription
Public propertyId
Gets the OidShort encoded as a UInt32
Top
Methods
  NameDescription
Public methodStatic memberAsString
Builds a string with DatabaseNumber-PageNumber-SlotNumber
Public methodStatic memberCompare
Compares by Id
Public methodCompareTo
Compares two OidShort objects by id
Public methodStatic memberEncode
Merges a page number and a page number into a single number
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(OidShort, OidShort)
Determines whether the specified objects are equal.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetHashCode(OidShort)
Returns a hash code for the specified object.
Public methodStatic memberPageNumber
Extracts a Page number from a combined Page-Slot number
Public methodStatic memberSamePageAs
Determines if two encoded OidShort have the same Page number
Public methodStatic memberSlotNumber(UInt32)
Extracts a page number
Public methodStatic memberSlotNumber(UInt32, UInt16)
Sets a page number
Public methodToString
Builds a string with PageNumber-SlotNumber
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares id of two OidShort
Public operatorStatic memberInequality
Compares id of two OidShort
Top
See Also