65 references to Encode
PresentationCore (65)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
332cbWrite += SerializationHelper.Encode(strm, uTag); 370cbWrite += SerializationHelper.Encode(strm, (uint)(compresseddata.Length - 1));
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (15)
490cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(KnownIds.DrawingFlags, true)); 491cbData += SerializationHelper.Encode(stream, (uint)(int)da.DrawingFlags); 496cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(KnownIds.CurveFittingError, true)); 497cbData += SerializationHelper.Encode(stream, (uint)(int)da.GetPropertyData(KnownIds.CurveFittingError)); 516cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(KnownIds.Color, true)); 517cbData += SerializationHelper.Encode(stream, colorVal); 529cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(KnownIds.Transparency, true)); 530cbData += SerializationHelper.Encode(stream, Convert.ToUInt32(transparency)); 547cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(KnownIds.RasterOperation, true)); 616cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(KnownIds.PenTip, true)); 617cbData += SerializationHelper.Encode(stream, (uint)PenTip.Rectangle); 670cbData += SerializationHelper.Encode(stream, (uint)guidList.FindTag(guid, true)); 671cbData += SerializationHelper.Encode(stream, uIntegral); 681cbData += SerializationHelper.Encode(stream, (uint)MS.Internal.Ink.InkSerializedFormat.KnownTagCache.KnownTagIndex.Mantissa); 682cbData += SerializationHelper.Encode(stream, cb);
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (2)
228uint cbWrote = SerializationHelper.Encode(stream, (uint)KnownTagCache.KnownTagIndex.GuidTable); 231cbWrote += SerializationHelper.Encode(stream, ul);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (40)
1738cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.InkSpaceRectangle); 1766cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.PersistenceFormat); 1767cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)SerializationHelper.VarSize((uint)CurrentPersistenceFormat)); 1768cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)CurrentPersistenceFormat); 1856uint cbFinal = SerializationHelper.Encode(outputStream, (uint)0x00); 1858cbFinal += SerializationHelper.Encode(outputStream, cumulativeEncodedSize); 1903cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesTableIndex); 1904cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].DrawingAttributesTableIndex); 1917cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorTableIndex); 1918cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].StrokeDescriptorTableIndex); 1931cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.MetricTableIndex); 1932cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].MetricDescriptorTableIndex); 1945cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.TransformTableIndex); 1946cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].TransformTableIndex); 1972cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.Stroke); 1976cumulativeEncodedSize += SerializationHelper.Encode(localStream, cbStroke); 2041uint cbWrote = SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.StrokeIds); 2057cbWrote += SerializationHelper.Encode(strm, (uint)(data.Length + SerializationHelper.VarSize((uint)strokes.Count))); 2060cbWrote += SerializationHelper.Encode(strm, (uint)strokes.Count); 2072cbWrote += SerializationHelper.Encode(strm, cbStrokeId); 2073cbWrote += SerializationHelper.Encode(strm, (uint)strokes.Count); 2234cbData += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorBlock); 2251cbData += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorTable); 2252cbData += SerializationHelper.Encode(strm, cbTotal); 2294cbData += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.MetricBlock); 2298cbData += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.MetricTable); 2299cbData += SerializationHelper.Encode(strm, cSize); 2323cbData += SerializationHelper.Encode(strm, strd.Size); 2327cbData += SerializationHelper.Encode(strm, (uint)strd.Template[count]); 2385cbTotal += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.TransformTable); 2386cbTotal += SerializationHelper.Encode(strm, floatTotal); 2395cbTotal += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.ExtendedTransformTable); 2396cbTotal += SerializationHelper.Encode(strm, doubleTotal); 2418cbData = SerializationHelper.Encode(strm, (uint)xform.Tag); 2425cbData += SerializationHelper.Encode(strm, angle); 2484totalSizeOfSerializedBytes += SerializationHelper.Encode(stream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesBlock); 2492totalSizeOfSerializedBytes += SerializationHelper.Encode(stream, sizeOfHeaderInBytes); 2523totalSizeOfSerializedBytes = SerializationHelper.Encode(stream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesTable); 2525totalSizeOfSerializedBytes += SerializationHelper.Encode(stream, sizeOfHeaderInBytes); 2531totalSizeOfSerializedBytes += SerializationHelper.Encode(stream, sizes[i]);
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (5)
240_size += SerializationHelper.Encode(strm, (uint)originalInfo.Unit); 255_size += SerializationHelper.Encode(strm, (uint)originalInfo.Unit); 509cbWrite = SerializationHelper.Encode(strm, _size); 515cbWrite += SerializationHelper.Encode(strm, (uint)entry.Tag); 516cbWrite += SerializationHelper.Encode(strm, entry.Size);
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
814uint localBytesWritten = (stream != null) ? SerializationHelper.Encode(stream, pointCount) : SerializationHelper.VarSize(pointCount);