internal static void Send(ResponseComposer p) { var version = p.GetVersion(); var requestId = p.ReadInt(); if (requestId == int.MaxValue) { p.ReadDouble(); // trigger parse exception for testing } var priceTickType = p.ReadEnum <TickType>(); var price = p.ReadDouble(); var size = version >= 2 ? p.ReadInt() : 0; var priceTick = new TickPrice(requestId, priceTickType, price, new TickAttrib(version >= 3? p: null)); p.Output(priceTick); if (version >= 2) { TickType tickTypeSize = GetTickTypeSize(priceTickType); if (tickTypeSize != TickType.Undefined) { p.Output(new TickSize(requestId, tickTypeSize, size)); } } }