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