Struct SimpleOpenFramingHeader
Simple Open Framing Header.
Implements
IEquatable<SimpleOpenFramingHeader>
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public struct SimpleOpenFramingHeader : IEquatable<SimpleOpenFramingHeader>
Fields
EncodingType
Identifier of the encoding used in the message payload.
Declaration
public ushort EncodingType
Field Value
Type | Description |
---|---|
System.UInt16 |
MsgSize
Message size.
Declaration
public ushort MsgSize
Field Value
Type | Description |
---|---|
System.UInt16 |
Methods
Equals(SimpleOpenFramingHeader)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(SimpleOpenFramingHeader other)
Parameters
Type | Name | Description |
---|---|---|
SimpleOpenFramingHeader | 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(SimpleOpenFramingHeader, SimpleOpenFramingHeader)
Declaration
public static bool operator ==(SimpleOpenFramingHeader left, SimpleOpenFramingHeader right)
Parameters
Type | Name | Description |
---|---|---|
SimpleOpenFramingHeader | left | |
SimpleOpenFramingHeader | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(SimpleOpenFramingHeader, SimpleOpenFramingHeader)
Declaration
public static bool operator !=(SimpleOpenFramingHeader left, SimpleOpenFramingHeader right)
Parameters
Type | Name | Description |
---|---|---|
SimpleOpenFramingHeader | left | |
SimpleOpenFramingHeader | right |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
IEquatable<>