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