Lines Matching refs:FieldCodec
243 field.AddEntriesFrom(input, FieldCodec.ForInt32(nonPackedTag)); in AddEntriesFrom_PackedInt32()
269 field.AddEntriesFrom(input, FieldCodec.ForInt32(packedTag)); in AddEntriesFrom_NonPackedInt32()
292 field.AddEntriesFrom(input, FieldCodec.ForString(tag)); in AddEntriesFrom_String()
316 field.AddEntriesFrom(input, FieldCodec.ForMessage(tag, ForeignMessage.Parser)); in AddEntriesFrom_Message()
328 field.WriteTo(output, FieldCodec.ForInt32(tag)); in WriteTo_PackedInt32()
349 field.WriteTo(output, FieldCodec.ForInt32(tag)); in WriteTo_NonPackedInt32()
370 field.WriteTo(output, FieldCodec.ForString(tag)); in WriteTo_String()
393 field.WriteTo(output, FieldCodec.ForMessage(tag, ForeignMessage.Parser)); in WriteTo_Message()
411 Assert.AreEqual(7, list.CalculateSize(FieldCodec.ForInt32(tag))); in CalculateSize_VariableSizeNonPacked()
420 Assert.AreEqual(15, list.CalculateSize(FieldCodec.ForSFixed32(tag))); in CalculateSize_FixedSizeNonPacked()
430 Assert.AreEqual(6, list.CalculateSize(FieldCodec.ForInt32(tag))); in CalculateSize_VariableSizePacked()
439 Assert.AreEqual(14, list.CalculateSize(FieldCodec.ForSFixed32(tag))); in CalculateSize_FixedSizePacked()
462 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumArray()
500 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumPackedArray()