• Version 4.4.3
Show / Hide Table of Contents

Class TimestampRef

Timestamp field reference.

Inheritance
object
BaseComposite
TimestampRef
Implements
ITimestamp
IComposite
IEquatable<TimestampRef>
Inherited Members
BaseComposite.Buffer
BaseComposite.Wrap(MemoryPointer.UnmanagedPointer)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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

true if the underlying field has a non-null value, false otherwise.

Overrides
BaseComposite.HasValue

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
BaseComposite.this[string]

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 other parameter; otherwise, false.

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
object.Equals(object)

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()

Reset()

Resets the field to the null value.

Declaration
public override void Reset()
Overrides
BaseComposite.Reset()

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.

Overrides
object.ToString()

Implements

ITimestamp
IComposite
IEquatable<T>
In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX