65 references to Encode
PresentationCore (65)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
347
cbWrite += SerializationHelper.
Encode
(strm, uTag);
385
cbWrite += SerializationHelper.
Encode
(strm, (uint)(compresseddata.Length - 1));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (15)
511
cbData += SerializationHelper.
Encode
(stream, (uint)guidList.FindTag(KnownIds.DrawingFlags, true));
512
cbData += SerializationHelper.
Encode
(stream, (uint)(int)da.DrawingFlags);
517
cbData += SerializationHelper.
Encode
(stream, (uint)guidList.FindTag(KnownIds.CurveFittingError, true));
518
cbData += SerializationHelper.
Encode
(stream, (uint)(int)da.GetPropertyData(KnownIds.CurveFittingError));
537
cbData += SerializationHelper.
Encode
(stream, (uint)guidList.FindTag(KnownIds.Color, true));
538
cbData += SerializationHelper.
Encode
(stream, colorVal);
550
cbData += SerializationHelper.
Encode
(stream, (uint)guidList.FindTag(KnownIds.Transparency, true));
551
cbData += SerializationHelper.
Encode
(stream, Convert.ToUInt32(transparency));
568
cbData += SerializationHelper.
Encode
(stream, (uint)guidList.FindTag(KnownIds.RasterOperation, true));
655
cbData += SerializationHelper.
Encode
(stream, (uint)guidList.FindTag(KnownIds.PenTip, true));
656
cbData += SerializationHelper.
Encode
(stream, (uint)PenTip.Rectangle);
709
cbData += SerializationHelper.
Encode
(stream, (uint)guidList.FindTag(guid, true));
710
cbData += SerializationHelper.
Encode
(stream, uIntegral);
720
cbData += SerializationHelper.
Encode
(stream, (uint)MS.Internal.Ink.InkSerializedFormat.KnownTagCache.KnownTagIndex.Mantissa);
721
cbData += SerializationHelper.
Encode
(stream, cb);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (2)
224
uint cbWrote = SerializationHelper.
Encode
(stream, (uint)KnownTagCache.KnownTagIndex.GuidTable);
227
cbWrote += SerializationHelper.
Encode
(stream, ul);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (40)
1769
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)KnownTagCache.KnownTagIndex.InkSpaceRectangle);
1797
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)KnownTagCache.KnownTagIndex.PersistenceFormat);
1798
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)SerializationHelper.VarSize((uint)CurrentPersistenceFormat));
1799
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)CurrentPersistenceFormat);
1888
uint cbFinal = SerializationHelper.
Encode
(outputStream, (uint)0x00);
1890
cbFinal += SerializationHelper.
Encode
(outputStream, cumulativeEncodedSize);
1944
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesTableIndex);
1945
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, _strokeLookupTable[s].DrawingAttributesTableIndex);
1958
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorTableIndex);
1959
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, _strokeLookupTable[s].StrokeDescriptorTableIndex);
1972
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)KnownTagCache.KnownTagIndex.MetricTableIndex);
1973
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, _strokeLookupTable[s].MetricDescriptorTableIndex);
1986
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)KnownTagCache.KnownTagIndex.TransformTableIndex);
1987
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, _strokeLookupTable[s].TransformTableIndex);
2013
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, (uint)KnownTagCache.KnownTagIndex.Stroke);
2017
cumulativeEncodedSize += SerializationHelper.
Encode
(localStream, cbStroke);
2091
uint cbWrote = SerializationHelper.
Encode
(strm, (uint)KnownTagCache.KnownTagIndex.StrokeIds);
2107
cbWrote += SerializationHelper.
Encode
(strm, (uint)(data.Length + SerializationHelper.VarSize((uint)strokes.Count)));
2110
cbWrote += SerializationHelper.
Encode
(strm, (uint)strokes.Count);
2122
cbWrote += SerializationHelper.
Encode
(strm, cbStrokeId);
2123
cbWrote += SerializationHelper.
Encode
(strm, (uint)strokes.Count);
2285
cbData += SerializationHelper.
Encode
(strm, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorBlock);
2302
cbData += SerializationHelper.
Encode
(strm, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorTable);
2303
cbData += SerializationHelper.
Encode
(strm, cbTotal);
2345
cbData += SerializationHelper.
Encode
(strm, (uint)KnownTagCache.KnownTagIndex.MetricBlock);
2349
cbData += SerializationHelper.
Encode
(strm, (uint)KnownTagCache.KnownTagIndex.MetricTable);
2350
cbData += SerializationHelper.
Encode
(strm, cSize);
2374
cbData += SerializationHelper.
Encode
(strm, strd.Size);
2378
cbData += SerializationHelper.
Encode
(strm, (uint)strd.Template[count]);
2436
cbTotal += SerializationHelper.
Encode
(strm, (uint)KnownTagCache.KnownTagIndex.TransformTable);
2437
cbTotal += SerializationHelper.
Encode
(strm, floatTotal);
2446
cbTotal += SerializationHelper.
Encode
(strm, (uint)KnownTagCache.KnownTagIndex.ExtendedTransformTable);
2447
cbTotal += SerializationHelper.
Encode
(strm, doubleTotal);
2469
cbData = SerializationHelper.
Encode
(strm, (uint)xform.Tag);
2476
cbData += SerializationHelper.
Encode
(strm, angle);
2545
totalSizeOfSerializedBytes += SerializationHelper.
Encode
(stream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesBlock);
2553
totalSizeOfSerializedBytes += SerializationHelper.
Encode
(stream, sizeOfHeaderInBytes);
2584
totalSizeOfSerializedBytes = SerializationHelper.
Encode
(stream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesTable);
2586
totalSizeOfSerializedBytes += SerializationHelper.
Encode
(stream, sizeOfHeaderInBytes);
2592
totalSizeOfSerializedBytes += SerializationHelper.
Encode
(stream, sizes[i]);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (5)
237
_size += SerializationHelper.
Encode
(strm, (uint)originalInfo.Unit);
252
_size += SerializationHelper.
Encode
(strm, (uint)originalInfo.Unit);
506
cbWrite = SerializationHelper.
Encode
(strm, _size);
512
cbWrite += SerializationHelper.
Encode
(strm, (uint)entry.Tag);
513
cbWrite += SerializationHelper.
Encode
(strm, entry.Size);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
862
uint localBytesWritten = (stream != null) ? SerializationHelper.
Encode
(stream, pointCount) : SerializationHelper.VarSize(pointCount);