Lines Matching refs:FieldCodec
46 new FieldCodecTestData<bool>(FieldCodec.ForBool(100), true, "FixedBool"),
47 new FieldCodecTestData<string>(FieldCodec.ForString(100), "sample", "String"),
48 new FieldCodecTestData<ByteString>(FieldCodec.ForBytes(100), ByteString.CopyFrom(1, 2, 3), "Bytes"),
49 new FieldCodecTestData<int>(FieldCodec.ForInt32(100), -1000, "Int32"),
50 new FieldCodecTestData<int>(FieldCodec.ForSInt32(100), -1000, "SInt32"),
51 new FieldCodecTestData<int>(FieldCodec.ForSFixed32(100), -1000, "SFixed32"),
52 new FieldCodecTestData<uint>(FieldCodec.ForUInt32(100), 1234, "UInt32"),
53 new FieldCodecTestData<uint>(FieldCodec.ForFixed32(100), 1234, "Fixed32"),
54 new FieldCodecTestData<long>(FieldCodec.ForInt64(100), -1000, "Int64"),
55 new FieldCodecTestData<long>(FieldCodec.ForSInt64(100), -1000, "SInt64"),
56 new FieldCodecTestData<long>(FieldCodec.ForSFixed64(100), -1000, "SFixed64"),
57 new FieldCodecTestData<ulong>(FieldCodec.ForUInt64(100), 1234, "UInt64"),
58 new FieldCodecTestData<ulong>(FieldCodec.ForFixed64(100), 1234, "Fixed64"),
59 new FieldCodecTestData<float>(FieldCodec.ForFloat(100), 1234.5f, "FixedFloat"),
60 new FieldCodecTestData<double>(FieldCodec.ForDouble(100), 1234567890.5d, "FixedDouble"),
62 FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
64 FieldCodec.ForMessage(100, ForeignMessage.Parser), new ForeignMessage { C = 10 }, "Message"),
112 private readonly FieldCodec<T> codec;
116 public FieldCodecTestData(FieldCodec<T> codec, T sampleValue, string name)