• 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

Class ResizableMessage

Base class for messages which size can be changed.

Inheritance
System.Object
ResizableMessage
BaseMessage<THeader>
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public abstract class ResizableMessage : object

Fields

buffer

Underlying buffer.

Declaration
protected MemoryPointer<byte> buffer
Field Value
Type Description
MemoryPointer<System.Byte>

Properties

Buffer

Message buffer.

Declaration
public Span<byte> Buffer { get; }
Property Value
Type Description
Span<System.Byte>

MsgSize

Length of the entire message, including the binary header, in the number of bytes.

Declaration
public abstract ushort MsgSize { get; }
Property Value
Type Description
System.UInt16

Methods

Resize(Span<Byte>, Int32, Int32)

Resize message and copy requered data.

Declaration
protected void Resize(Span<byte> bufToResize, int oldSize, int newSize)
Parameters
Type Name Description
Span<System.Byte> bufToResize

Buffer to resize.

System.Int32 oldSize

Old size of message.

System.Int32 newSize

New size of message.

Exceptions
Type Condition
BufferOverflowException

Thrown if buffer does not have free space new group.

Wrap(MemoryPointer<Byte>, Boolean)

Wraps message around the buffer.

Declaration
public void Wrap(MemoryPointer<byte> buffer, bool encode = false)
Parameters
Type Name Description
MemoryPointer<System.Byte> buffer

Data buffer.

System.Boolean encode

If true, will set header fields and reset optional fields.

Wrap(MemoryPointer<Byte>, Boolean, Boolean)

Wraps message around the buffer.

Declaration
protected abstract void Wrap(MemoryPointer<byte> buffer, bool encode, bool resetGroups)
Parameters
Type Name Description
MemoryPointer<System.Byte> buffer

Data buffer.

System.Boolean encode

If true, will set header fields and reset optional fields.

System.Boolean resetGroups

If true, will reset repeating groups position.

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