Lines Matching refs:FieldCodec
43 public static class FieldCodec class
52 public static FieldCodec<string> ForString(uint tag) in ForString()
54 …return new FieldCodec<string>(input => input.ReadString(), (output, value) => output.WriteString(v… in ForString()
62 public static FieldCodec<ByteString> ForBytes(uint tag) in ForBytes()
64 …return new FieldCodec<ByteString>(input => input.ReadBytes(), (output, value) => output.WriteBytes… in ForBytes()
72 public static FieldCodec<bool> ForBool(uint tag) in ForBool()
74 …return new FieldCodec<bool>(input => input.ReadBool(), (output, value) => output.WriteBool(value),… in ForBool()
82 public static FieldCodec<int> ForInt32(uint tag) in ForInt32()
84 …return new FieldCodec<int>(input => input.ReadInt32(), (output, value) => output.WriteInt32(value)… in ForInt32()
92 public static FieldCodec<int> ForSInt32(uint tag) in ForSInt32()
94 …return new FieldCodec<int>(input => input.ReadSInt32(), (output, value) => output.WriteSInt32(valu… in ForSInt32()
102 public static FieldCodec<uint> ForFixed32(uint tag) in ForFixed32()
104 …return new FieldCodec<uint>(input => input.ReadFixed32(), (output, value) => output.WriteFixed32(v… in ForFixed32()
112 public static FieldCodec<int> ForSFixed32(uint tag) in ForSFixed32()
114 …return new FieldCodec<int>(input => input.ReadSFixed32(), (output, value) => output.WriteSFixed32(… in ForSFixed32()
122 public static FieldCodec<uint> ForUInt32(uint tag) in ForUInt32()
124 …return new FieldCodec<uint>(input => input.ReadUInt32(), (output, value) => output.WriteUInt32(val… in ForUInt32()
132 public static FieldCodec<long> ForInt64(uint tag) in ForInt64()
134 …return new FieldCodec<long>(input => input.ReadInt64(), (output, value) => output.WriteInt64(value… in ForInt64()
142 public static FieldCodec<long> ForSInt64(uint tag) in ForSInt64()
144 …return new FieldCodec<long>(input => input.ReadSInt64(), (output, value) => output.WriteSInt64(val… in ForSInt64()
152 public static FieldCodec<ulong> ForFixed64(uint tag) in ForFixed64()
154 …return new FieldCodec<ulong>(input => input.ReadFixed64(), (output, value) => output.WriteFixed64(… in ForFixed64()
162 public static FieldCodec<long> ForSFixed64(uint tag) in ForSFixed64()
164 …return new FieldCodec<long>(input => input.ReadSFixed64(), (output, value) => output.WriteSFixed64… in ForSFixed64()
172 public static FieldCodec<ulong> ForUInt64(uint tag) in ForUInt64()
174 …return new FieldCodec<ulong>(input => input.ReadUInt64(), (output, value) => output.WriteUInt64(va… in ForUInt64()
182 public static FieldCodec<float> ForFloat(uint tag) in ForFloat()
184 …return new FieldCodec<float>(input => input.ReadFloat(), (output, value) => output.WriteFloat(valu… in ForFloat()
192 public static FieldCodec<double> ForDouble(uint tag) in ForDouble()
194 …return new FieldCodec<double>(input => input.ReadDouble(), (output, value) => output.WriteDouble(v… in ForDouble()
207 … public static FieldCodec<T> ForEnum<T>(uint tag, Func<T, int> toInt32, Func<int, T> fromInt32) in ForEnum()
209 return new FieldCodec<T>(input => fromInt32( in ForEnum()
221 … public static FieldCodec<T> ForMessage<T>(uint tag, MessageParser<T> parser) where T : IMessage<T>
223 …return new FieldCodec<T>(input => { T message = parser.CreateTemplate(); input.ReadMessage(message…
230 public static FieldCodec<T> ForClassWrapper<T>(uint tag) where T : class
233 return new FieldCodec<T>(
245 public static FieldCodec<T?> ForStructWrapper<T>(uint tag) where T : struct
248 return new FieldCodec<T?>(
283 internal static FieldCodec<T> GetCodec<T>() in GetCodec()
290 return (FieldCodec<T>) value; in GetCodec()
293 internal static T Read<T>(CodedInputStream input, FieldCodec<T> codec) in Read()
318 internal static void Write<T>(CodedOutputStream output, T value, FieldCodec<T> codec) in Write()
324 internal static int CalculateSize<T>(T value, FieldCodec<T> codec) in CalculateSize()
347 public sealed class FieldCodec<T> class
352 static FieldCodec() in FieldCodec() method in Google.Protobuf.FieldCodec
411 internal FieldCodec( in FieldCodec() method in Google.Protobuf.FieldCodec
420 internal FieldCodec( in FieldCodec() method in Google.Protobuf.FieldCodec
428 internal FieldCodec( in FieldCodec() method in Google.Protobuf.FieldCodec