• Programming Guide
  • Api Documentation
  • OnixS .NET Core CME Market Data Handler, version 4.2.2
Show / Hide Table of Contents
  • OnixS.CmeMdHandler
    • BestBidOfferTrackingOptions
    • BestBidOfferTrackingParameters
    • BitmapField
    • BookBase<T>
    • BookChangeType
    • BookUpdatedCallbackPolicy
    • ConnectionType
    • ConsolidatedOrderBook
    • ErrorHandler
    • ErrorReason
    • EventIndicator
    • FeedState
    • FeedStateChangedHandler
    • FeedType
    • Handler
    • HandlerStartupStrategy
    • HandlerState
    • ImpliedOrderBook
    • ImpliedOrderBookChangedHandler
    • ImpliedPriceLevel
    • InfoHandler
    • ISecurityDefinition
    • LicenseException
    • LicenseExpiredException
    • LicenseNotFoundException
    • MarketByOrderBook
    • MarketByOrderBookChangedHandler
    • MarketByPriceBookBase<T>
    • MDEntryType
    • MDUpdateAction
    • MessageProcessingHandler
    • MsgType
    • NoDataOnFeedReceivedHandler
    • Order
    • OrderBookHandler<T>
    • OrderBookType
    • OrderBookUpdatedHandler<T>
    • OrderBookUtils
    • OrderIdsReceivedHandler
    • Packet
    • PacketProcessingHandler
    • RegularOrderBook
    • RegularOrderBookChangedHandler
    • RegularPriceLevel
    • ReplayErrorHandler
    • ReplayFinishedHandler
    • ReplayOptions
    • RequestForQuoteReceivedHandler
    • SecurityDefinitionHandler
    • SecurityStatus
    • SecurityStatusChangedHandler
    • SecurityTradingEvent
    • SecurityUpdateAction
    • Side
    • StateChangedHandler
    • StatisticsHandler
    • StatisticsResetHandler
    • StatisticsType
    • Tags
    • Timestamp
    • TimestampHelper
    • TopOfTheOrderBookUpdatedHandler<T>
    • TradeHandler
    • TradeUpdateAction
    • WarningHandler
    • WarningReason
  • OnixS.SimpleBinaryEncoding
    • BaseComposite
    • BaseGroup
    • BaseMessage<THeader>
    • BufferOverflowException
    • CmeILinkHeader
    • CmeMdp3Header
    • ConstantFieldException
    • Decimal32Ref
    • Decimal64Ref
    • DecimalHelper
    • EncodingType
    • FieldIsRequiredException
    • FieldNotFoundException
    • Helper
    • IComposite
    • IDecimal
    • IDecoder
    • IEncoder
    • IFieldSet
    • IGroup
    • IHeader
    • IMaturityMonthYear
    • IMessage
    • InvalidFieldValueTypeException
    • ITimestamp
    • IVariableLengthField
    • LicenseException
    • LicenseExpiredException
    • LicenseNotFoundException
    • MaturityMonthYearRef
    • MemoryPointer<T>
    • ResizableMessage
    • SbeHeader
    • SimpleOpenFramingHeader
    • TimestampRef
    • TimeUnit
    • VariableLengthField16Ref
    • VariableLengthField8Ref
  • OnixS.SimpleBinaryEncoding.CodeGenerator
    • MessageSchemaByteOrderAttribute
    • MessageSchemaDescriptionAttribute
    • MessageSchemaIdAttribute
    • MessageSchemaPackageAttribute
    • MessageSchemaSemanticVersionAttribute
    • MessageSchemaVersionAttribute
    • StrongTypedCodeGenerator
  • OnixS.SimpleBinaryEncoding.Templates
    • ByteOrder
    • CompositeTypeInfo
    • EnumTypeInfo
    • EnumValue
    • FieldInfo
    • FieldSetFieldInfo
    • GroupFieldInfo
    • MessageInfo
    • Presence
    • PrimitiveFieldInfo
    • PrimitiveType
    • PrimitiveTypeInfo
    • TemplateLibrary
    • TypeInfo
    • VariableLengthFieldInfo

Interface IEncoder

Represents encoder.

Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public interface IEncoder

Methods

Get(Int32)

Creates a new message object without wrapping over the buffer.

Declaration
IMessage Get(int templateId)
Parameters
Type Name Description
System.Int32 templateId

Message template id.

Returns
Type Description
IMessage

Message for encoding.

GetPreCreatedMessage(Int32)

Returns pre-created message object without wrapping over the buffer.

Declaration
IMessage GetPreCreatedMessage(int templateId)
Parameters
Type Name Description
System.Int32 templateId

Message template id.

Returns
Type Description
IMessage

Message for encoding.

Wrap(Int32, MemoryPointer<Byte>)

Creates a new message object wrapped over an empty data buffer. Sets header fields.

Declaration
IMessage Wrap(int templateId, MemoryPointer<byte> data)
Parameters
Type Name Description
System.Int32 templateId

Message template id.

MemoryPointer<System.Byte> data

Pointer to buffer.

Returns
Type Description
IMessage

Message for encoding.

Wrap(Int32, Int32)

Creates a new message object wrapped over the newly created buffer. Sets header fields.

Declaration
IMessage Wrap(int templateId, int expectedLength = 0)
Parameters
Type Name Description
System.Int32 templateId

Message template id.

System.Int32 expectedLength

Expected message length.

  • When zero and the message size is fixed then this fixed message size will be used.
  • When zero and the message size is not fixed (e.g., contains repeating groups and/or variable length fields), then UInt16.MaxValue will be used as the buffer size.
Returns
Type Description
IMessage

Message for encoding.

WrapPreCreatedMessage(Int32, MemoryPointer<Byte>)

Returns pre-created message object wrapped over an empty data buffer. Sets header fields.

Declaration
IMessage WrapPreCreatedMessage(int templateId, MemoryPointer<byte> data)
Parameters
Type Name Description
System.Int32 templateId

Message template id.

MemoryPointer<System.Byte> data

Pointer to buffer.

Returns
Type Description
IMessage

Message for encoding.

WrapPreCreatedMessage(Int32, Int32)

Returns pre-created message object wrapped over the newly created buffer. Sets header fields.

Declaration
IMessage WrapPreCreatedMessage(int templateId, int expectedLength = 0)
Parameters
Type Name Description
System.Int32 templateId

Message template id.

System.Int32 expectedLength

Expected message length.

  • When zero and the message size is fixed then this fixed message size will be used.
  • When zero and the message size is not fixed (e.g., contains repeating groups and/or variable length fields), then UInt16.MaxValue will be used as the buffer size.
Returns
Type Description
IMessage

Message for encoding.

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