Example #1
0
 static OperatorCodec()
 {
     NONE_ALL          = new NoneOperatorCodec(Operator.NONE, FASTType.ALL_TYPES());
     CONSTANT_ALL      = new ConstantOperatorCodec(Operator.CONSTANT, FASTType.ALL_TYPES());
     DEFAULT_ALL       = new DefaultOperatorCodec(Operator.DEFAULT, FASTType.ALL_TYPES());
     INCREMENT_INTEGER = new IncrementIntegerOperatorCodec(Operator.INCREMENT, FASTType.INTEGER_TYPES);
     DELTA_INTEGER     = new DeltaIntegerOperatorCodec(Operator.DELTA, FASTType.INTEGER_TYPES);
     TAIL = new TailOperatorCodec(Operator.TAIL, new[] { FASTType.ASCII, FASTType.STRING, FASTType.UNICODE, FASTType.BYTE_VECTOR });
 }
 static OperatorCodec()
 {
     NONE_ALL = new NoneOperatorCodec(Operator.NONE, FASTType.ALL_TYPES());
     CONSTANT_ALL = new ConstantOperatorCodec(Operator.CONSTANT, FASTType.ALL_TYPES());
     DEFAULT_ALL = new DefaultOperatorCodec(Operator.DEFAULT, FASTType.ALL_TYPES());
     INCREMENT_INTEGER = new IncrementIntegerOperatorCodec(Operator.INCREMENT, FASTType.INTEGER_TYPES);
     DELTA_INTEGER = new DeltaIntegerOperatorCodec(Operator.DELTA, FASTType.INTEGER_TYPES);
     TAIL = new TailOperatorCodec(Operator.TAIL, new[]{FASTType.ASCII, FASTType.STRING, FASTType.UNICODE, FASTType.BYTE_VECTOR});
 }
Example #3
0
 public virtual OperatorCodec GetCodec(FASTType type)
 {
     return(OperatorCodec.GetCodec(this, type));
 }
 protected static void AssertScalarField(FieldSet fieldSet, int fieldIndex, Type type, String name, OperatorCodec operator_ren,
     ScalarValue defaultValue)
 {
     var field = (Scalar)fieldSet.GetField(fieldIndex);
     AssertScalarField(field, type, name);
     Assert.AreEqual(operator_ren, field.OperatorCodec);
     Assert.AreEqual(defaultValue, field.DefaultValue);
 }