Class TimestampRef
Timestamp field reference.
Inherited Members
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class TimestampRef : BaseComposite, ITimestamp, IComposite, IEquatable<TimestampRef>
Constructors
TimestampRef(TimeUnit?)
Constructor.
Declaration
public TimestampRef(TimeUnit? constant)
Parameters
Type | Name | Description |
---|---|---|
TimeUnit? | constant | The time unit constant value. |
TimestampRef(TimeUnit?, UnmanagedPointer)
Constructor.
Declaration
public TimestampRef(TimeUnit? constant, MemoryPointer.UnmanagedPointer buffer)
Parameters
Type | Name | Description |
---|---|---|
TimeUnit? | constant | The time unit constant value. |
MemoryPointer.UnmanagedPointer | buffer | The memory region that contains the timestamp value. |
Properties
HasValue
Declaration
public override bool HasValue { get; }
Property Value
Type | Description |
---|---|
bool |
|
Overrides
this[string]
Gets or sets the subfield value.
Declaration
public override object this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
string | name | Subfield name. |
Property Value
Type | Description |
---|---|
object | Subfield value. |
Overrides
Time
Declaration
public ulong Time { get; set; }
Property Value
Type | Description |
---|---|
ulong | Time value measured in time units. |
Unit
Declaration
public TimeUnit Unit { get; set; }
Property Value
Type | Description |
---|---|
TimeUnit | Time unit. |
Methods
Equals(TimestampRef)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(TimestampRef other)
Parameters
Type | Name | Description |
---|---|---|
TimestampRef | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
Reset()
Resets the field to the null
value.
Declaration
public override void Reset()
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |