Struct SbeHeader
Simple Binary Encoder message header.
Implements
IEquatable<SbeHeader>
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public struct SbeHeader : IEquatable<SbeHeader>
Fields
BlockLength
Size of fixed block.
Declaration
public ushort BlockLength
Field Value
Type | Description |
---|---|
System.UInt16 |
SchemaID
Schema ID.
Declaration
public ushort SchemaID
Field Value
Type | Description |
---|---|
System.UInt16 |
TemplateID
Message template ID.
Declaration
public ushort TemplateID
Field Value
Type | Description |
---|---|
System.UInt16 |
Version
Schema version.
Declaration
public ushort Version
Field Value
Type | Description |
---|---|
System.UInt16 |
Methods
Equals(SbeHeader)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(SbeHeader other)
Parameters
Type | Name | Description |
---|---|---|
SbeHeader | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the other parameter; otherwise, false. |
Equals(Object)
Indicates whether the current object is equal to another object of the same type.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the other parameter; otherwise, false. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
Operators
Equality(SbeHeader, SbeHeader)
Declaration
public static bool operator ==(SbeHeader left, SbeHeader right)
Parameters
Type | Name | Description |
---|---|---|
SbeHeader | left | |
SbeHeader | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(SbeHeader, SbeHeader)
Declaration
public static bool operator !=(SbeHeader left, SbeHeader right)
Parameters
Type | Name | Description |
---|---|---|
SbeHeader | left | |
SbeHeader | right |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
IEquatable<>