• Programming Guide
  • Api Documentation
  • OnixS .NET Core / .NET 6 FIX Engine, version 1.9.0
Show / Hide Table of Contents
  • OnixS.Fix
    • ByteBuffer
    • BytesReceivedEventHandler
    • CertificateValidationArgs
    • Dictionary
    • EncryptionMethod
    • Engine
    • Engine.State
    • EngineErrorEventArgs
    • EngineErrorReason
    • EngineException
    • EngineSettings
    • EngineSettings.Default
    • EngineSettings.Key
    • EngineSslSettings
    • EngineWarningEventArgs
    • EngineWarningReason
    • Field
    • FieldSet
    • FieldSet.FieldEnumerator
    • FixStringFormat
    • FlatGroupReader
    • FlatMessage
    • FlatMessage.FieldIterator
    • Group
    • Group.GroupInstanceEnumerator
    • GroupInstance
    • HighResolutionTimeSpan
    • HighResolutionTimestamp
    • IFieldSet
    • IMessage
    • InboundMessageEventArgs
    • IncomingTelecommunicationLinkEventArgs
    • ISession
    • ITimestampProvider
    • KnownSerializedFieldKeys
    • Message
    • MessageEventArgs
    • MessageMemoryPool
    • MessageMemoryPoolSettings
    • MessageMode
    • MessageResendingEventArgs
    • MessageSendingEventArgs
    • MessageValidationFlags
    • PortRange
    • ProtocolVersion
    • ProtocolVersionExtensions
    • ProtocolVersionHelper
    • ProxySettings
    • ProxyType
    • RemoteCertificateNameMismatchOption
    • RemoteCertificateValidationCallback
    • SerializedFieldKey
    • SerializedFieldRef
    • SerializedMessage
    • Session
    • SessionErrorEventArgs
    • SessionErrorReason
    • SessionId
    • SessionRole
    • SessionState
    • SessionStateChangeEventArgs
    • SessionStorageType
    • SessionWarningEventArgs
    • SessionWarningReason
    • SslSettings
    • TimeSpanFormat
    • TimestampFormat
    • UnknownIncomingConnectionEventArgs
  • OnixS.Fix.Dictionaries
    • DictionaryException
    • DictionaryManager
    • FieldContainerInfo
    • FieldInfo
    • FieldType
    • FieldTypeInfo
    • FieldValueInfo
    • MessageInfo
    • MessageInfoExtensions
  • OnixS.Fix.Exceptions
    • CannotEstablishLinkException
    • EmptyGroupException
    • EngineAlreadyInitializedException
    • EngineIsNotInitializedException
    • FirstMessageNotLogonException
    • IncorrectCheckSumException
    • IncorrectFieldValueException
    • IndexNotFoundException
    • InstanceIndexOutOfRangeException
    • InvalidInboundLogonException
    • InvalidMsgTypeException
    • InvalidNumberOfRepeatingGroupInstances
    • LicenseException
    • LicenseExpiredException
    • LicenseNotFoundException
    • LinkErrorException
    • LogonReplyException
    • LogonReplyTimeoutException
    • LogoutReplyTimeoutException
    • ParserException
    • ParserException.RejectReason
    • RequiredTagMissingException
    • SessionException
    • StorageException
    • TagNotDefinedForThisMessageTypeException
    • TagNotFoundException
    • TagSpecifiedOutOfRequiredOrderException
    • TagSpecifiedWithoutValueException
    • UnexpectedSequenceNumberException
  • OnixS.Fix.Fast
    • Coder
    • DecodedValue<T>
    • Decoder
    • DecodeResult
    • DecoderExtension
    • DictionaryBuilder
    • DynamicErrorException
    • DynamicErrorException.ErrorCode
    • Encoder
    • FastErrorCode
    • FastException
    • FixMessageFactory
    • NotEnoughInputDataException
    • StaticErrorException
    • StaticErrorException.ErrorCode
  • OnixS.Fix.Fix2FixmlConverter
    • FixmlConverter
    • FixmlConverterException
  • OnixS.Fix.Properties
    • Resources
  • OnixS.Fix.Scheduling
    • AcceptorConnectionSettings
    • CounterpartySettings
    • InitiatorConnectingEventArgs
    • InitiatorConnectionSettings
    • Scheduler
    • SequenceNumberResetPolicy
    • SessionConnectionSettings
    • SessionDuration
    • SessionErrorEventArgs
    • SessionEventArgs
    • SessionLoggingOutEventArgs
    • SessionSchedule
    • SessionWarningEventArgs
  • OnixS.Fix.Storage
    • ISessionStorage

Class DecoderExtension

Extensions to the Decoder class.

Inheritance
Object
DecoderExtension
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: OnixS.Fix.Fast
Assembly: OnixS.Fix.Engine.dll
Syntax
public static class DecoderExtension

Methods

TryDecode(Decoder, DecodeResult, ByteBuffer)

Tries to decode the given FAST stream chunk into the corresponding FIX Message.

Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, ByteBuffer buffer)
Parameters
Type Name Description
Decoder decoder

Decoder instance to use.

DecodeResult result

Decode result to fill.

ByteBuffer buffer

An array of bytes that contains the source FAST stream chunk.

Returns
Type Description
Boolean
true
if the decoding successful,
false
if not enough input data.
Exceptions
Type Condition
FastException

If decoding failed.

TryDecode(Decoder, DecodeResult, ByteBuffer, Int32)

Tries to decode the given FAST stream chunk into the corresponding FIX Message.

Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, ByteBuffer buffer, int offset)
Parameters
Type Name Description
Decoder decoder

Decoder instance to use.

DecodeResult result

Decode result to fill.

ByteBuffer buffer

An array of bytes that contains the source FAST stream chunk.

Int32 offset

The number of bytes from the beginning of the byte array to skip.

Returns
Type Description
Boolean
true
if the decoding successful,
false
if not enough input data.
Exceptions
Type Condition
FastException

If decoding failed.

TryDecode(Decoder, DecodeResult, Byte[])

Tries to decode the given FAST stream chunk into the corresponding FIX Message.

Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, byte[] buffer)
Parameters
Type Name Description
Decoder decoder

Decoder instance to use.

DecodeResult result

Decode result to fill.

Byte[] buffer

An array of bytes that contains the source FAST stream chunk.

Returns
Type Description
Boolean
true
if the decoding successful,
false
if not enough input data.
Exceptions
Type Condition
FastException

If decoding failed.

TryDecode(Decoder, DecodeResult, Byte[], Int32)

Tries to decode the given FAST stream chunk into the corresponding FIX Message.

Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, byte[] buffer, int offset)
Parameters
Type Name Description
Decoder decoder

Decoder instance to use.

DecodeResult result

Decode result to fill.

Byte[] buffer

An array of bytes that contains the source FAST stream chunk.

Int32 offset

The number of bytes from the beginning of the byte array to skip.

Returns
Type Description
Boolean
true
if the decoding successful,
false
if not enough input data.
Exceptions
Type Condition
FastException

If decoding failed.

TryDecode(Decoder, DecodeResult, Byte[], Int32, Int32)

Tries to decode the given FAST stream chunk into the corresponding FIX Message.

Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, byte[] buffer, int offset, int count)
Parameters
Type Name Description
Decoder decoder

Decoder instance to use.

DecodeResult result

Decode result to fill.

Byte[] buffer

An array of bytes that contains the source FAST stream chunk.

Int32 offset

The number of bytes from the beginning of the byte array to skip.

Int32 count

The number of bytes to process.

Returns
Type Description
Boolean
true
if the decoding successful,
false
if not enough input data.
Exceptions
Type Condition
FastException

If decoding failed.

In This Article
Back to top Copyright © Onix Solutions.
Generated by DocFX