SnapInt32 Class

Represents a 32-bit integer value that can be serialized.

Definition

Namespace: SnapDB.Snap.Types
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class SnapInt32 : SnapTypeBase<SnapInt32>
Inheritance
Object    SnapTypeBase    SnapTypeBaseSnapInt32    SnapInt32

Constructors

SnapInt32 Initializes a new instance of the SnapInt32 class.
SnapInt32(Int32) Initializes a new instance of the SnapInt32 class with the specified value.

Properties

GenericTypeGuid Gets the globally unique identifier (GUID) representing the SnapInt32 data type.
(Overrides SnapTypeBaseGenericTypeGuid)
Size Gets the size of the SnapInt32 data type in bytes.
(Overrides SnapTypeBaseSize)

Methods

Clear Clears the value of this SnapInt32, setting it to 0.
(Overrides SnapTypeBaseClear)
Clone Creates a new instance that is a copy of the current instance.
(Inherited from SnapTypeBaseT)
Compare Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
(Inherited from SnapTypeBaseT)
CompareTo(Byte*) Compares this SnapInt32 to a memory stream and returns an integer that indicates their relative values.
(Overrides SnapTypeBaseTCompareTo(Byte*))
CompareTo(SnapInt32) Compares this SnapInt32 to another SnapInt32 and returns an integer that indicates their relative values.
(Overrides SnapTypeBaseTCompareTo(T))
CopyTo Copies the value of this SnapInt32 to the specified destination SnapInt32.
(Overrides SnapTypeBaseTCopyTo(T))
CreateValueMethods Creates and returns custom methods for SnapInt32 values.
(Overrides SnapTypeBaseTCreateValueMethods)
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(T) Indicates whether the current object is equal to another object of the same type.
(Inherited from SnapTypeBaseT)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsBetween Determines whether this SnapInt32 is between the specified lower and upper bounds (inclusive).
(Overrides SnapTypeBaseTIsBetween(T, T))
IsEqualTo Determines whether this SnapInt32 is equal to the specified SnapInt32.
(Overrides SnapTypeBaseTIsEqualTo(T))
IsGreaterThan Determines whether this SnapInt32 is greater than the specified SnapInt32.
(Overrides SnapTypeBaseTIsGreaterThan(T))
IsGreaterThanOrEqualTo Determines whether this SnapInt32 is greater than or equal to the specified SnapInt32.
(Overrides SnapTypeBaseTIsGreaterThanOrEqualTo(T))
IsLessThan Determines whether this SnapInt32 is less than the specified SnapInt32.
(Overrides SnapTypeBaseTIsLessThan(T))
IsLessThanOrEqualTo Determines whether the current instance is less than or equal to a specified value.
(Inherited from SnapTypeBaseT)
IsNotEqualTo Compares the current instance with another instance of the same type and determines whether they are not equal.
(Inherited from SnapTypeBaseT)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
MethodCopy Executes a copy command without modifying the current class.
(Inherited from SnapTypeBase)
Read(BinaryStreamBase) Reads the value of this SnapInt32 from a binary stream.
(Overrides SnapTypeBaseRead(BinaryStreamBase))
Read(Byte*) Reads the value of this SnapInt32 from a memory stream.
(Overrides SnapTypeBaseRead(Byte*))
Read(Stream) Reads the provided key from the stream.
(Inherited from SnapTypeBase)
SetMax Sets the value of this SnapInt32 to the maximum possible value.
(Overrides SnapTypeBaseSetMax)
SetMin Sets the value of this SnapInt32 to the minimum possible value.
(Overrides SnapTypeBaseSetMin)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Write(BinaryStreamBase) Writes the value of this SnapInt32 to a binary stream.
(Overrides SnapTypeBaseWrite(BinaryStreamBase))
Write(Byte*) Writes the value of this SnapInt32 to a memory stream.
(Overrides SnapTypeBaseWrite(Byte*))
Write(Stream) Writes the provided key to the stream.
(Inherited from SnapTypeBase)

Fields

Value Gets or sets the integer value.

See Also