146 references to SerializationHelper
PresentationCore (146)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (6)
77
interopTypeInfo =
SerializationHelper
.ConvertToVarEnum(attribute.Value.GetType(), true);
347
cbWrite +=
SerializationHelper
.Encode(strm, uTag);
385
cbWrite +=
SerializationHelper
.Encode(strm, (uint)(compresseddata.Length - 1));
459
cb =
SerializationHelper
.Decode(stream, out uiTag);
485
cb =
SerializationHelper
.Decode(stream, out size);
950
VarEnum varEnum =
SerializationHelper
.ConvertToVarEnum(value.GetType(), true);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (26)
150
uint cb =
SerializationHelper
.Decode (stream, out uiTag);
171
cb =
SerializationHelper
.Decode (stream, out dw);
181
cb =
SerializationHelper
.Decode(stream, out dw);
188
cb =
SerializationHelper
.Decode (stream, out dw);
214
cb =
SerializationHelper
.Decode (stream, out dw);
221
cb =
SerializationHelper
.Decode (stream, out dw);
226
cb =
SerializationHelper
.Decode (stream, out dw);
232
cb =
SerializationHelper
.Decode (stream, out cbInSize);
279
cb =
SerializationHelper
.Decode(stream, out dw);
285
cb =
SerializationHelper
.Decode(stream, out dw);
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);
661
System.Runtime.InteropServices.VarEnum type =
SerializationHelper
.ConvertToVarEnum(PersistenceTypes.StylusTip, true);
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 (4)
220
return (uint)(ul +
SerializationHelper
.VarSize(ul) +
SerializationHelper
.VarSize((uint)KnownTagCache.KnownTagIndex.GuidTable));
224
uint cbWrote =
SerializationHelper
.Encode(stream, (uint)KnownTagCache.KnownTagIndex.GuidTable);
227
cbWrote +=
SerializationHelper
.Encode(stream, ul);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (82)
223
cb =
SerializationHelper
.Decode(isfStream, out count);
364
uint localBytesDecoded =
SerializationHelper
.Decode(inputStream, out uiTag);
369
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out remainingBytesInStream);
379
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out uiTag);
406
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out bytesDecodedInCurrentTag);
508
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out fmt);
528
localBytesDecoded =
SerializationHelper
.SignDecode(inputStream, out sz);
533
localBytesDecoded +=
SerializationHelper
.SignDecode(inputStream, out sz);
718
bytesDecodedInCurrentTag =
SerializationHelper
.Decode(inputStream, out transformTableIndex);
726
bytesDecodedInCurrentTag =
SerializationHelper
.Decode(inputStream, out metricDescriptorTableIndex);
734
bytesDecodedInCurrentTag =
SerializationHelper
.Decode(inputStream, out drawingAttributesTableIndex);
749
bytesDecodedInCurrentTag =
SerializationHelper
.Decode(inputStream, out strokeDescriptorTableIndex);
786
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out bytesDecodedInCurrentTag);
854
uint cb =
SerializationHelper
.Decode(strm, out cbDA);
914
cb =
SerializationHelper
.Decode(strm, out uiTag);
928
cb =
SerializationHelper
.Decode(strm, out cbButton);
938
cb =
SerializationHelper
.Decode(strm, out dw);
955
cb =
SerializationHelper
.Decode(strm, out dw);
1017
cb =
SerializationHelper
.Decode(strm, out cbBlock);
1072
cb =
SerializationHelper
.Decode(strm, out dw);
1121
cb =
SerializationHelper
.Decode(strm, out dw);
1129
cb =
SerializationHelper
.Decode(strm, out size);
1194
cb =
SerializationHelper
.Decode(strm, out uiTag);
1289
cbRead =
SerializationHelper
.Decode(strm, out angle);
1360
cb =
SerializationHelper
.SignDecode(strm, out data);
1371
cb =
SerializationHelper
.SignDecode(strm, out data);
1382
cb =
SerializationHelper
.SignDecode(strm, out data);
1393
cb =
SerializationHelper
.SignDecode(strm, out data);
1529
cbEntry +=
SerializationHelper
.SignDecode(strm, out range);
1538
cbEntry +=
SerializationHelper
.SignDecode(strm, out range);
1549
cbEntry +=
SerializationHelper
.Decode(strm, out cb);
1769
cumulativeEncodedSize +=
SerializationHelper
.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.InkSpaceRectangle);
1773
cumulativeEncodedSize +=
SerializationHelper
.SignEncode(localStream, i);
1775
cumulativeEncodedSize +=
SerializationHelper
.SignEncode(localStream, i);
1777
cumulativeEncodedSize +=
SerializationHelper
.SignEncode(localStream, i);
1779
cumulativeEncodedSize +=
SerializationHelper
.SignEncode(localStream, i);
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);
2120
uint cbStrokeId = (uint)(strokes.Count * Native.SizeOfInt + 1 +
SerializationHelper
.VarSize((uint)strokes.Count)); // 1 is for the compression header
2122
cbWrote +=
SerializationHelper
.Encode(strm, cbStrokeId);
2123
cbWrote +=
SerializationHelper
.Encode(strm, (uint)strokes.Count);
2285
cbData +=
SerializationHelper
.Encode(strm, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorBlock);
2298
cbTotal +=
SerializationHelper
.VarSize((_strokeDescriptorTable[count]).Size) + (_strokeDescriptorTable[count]).Size;
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]);
2406
uint cbLocal =
SerializationHelper
.VarSize((uint)xform.Tag);
2412
cbLocal =
SerializationHelper
.VarSize((uint)(xform.Transform[0] + 0.5f));
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);
2580
sizeOfHeaderInBytes +=
SerializationHelper
.VarSize(sizes[i]) + sizes[i];
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 (17)
233
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Minimum);
235
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Maximum);
237
_size +=
SerializationHelper
.Encode(strm, (uint)originalInfo.Unit);
248
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Minimum);
250
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Maximum);
252
_size +=
SerializationHelper
.Encode(strm, (uint)originalInfo.Unit);
257
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Minimum);
259
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Maximum);
263
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Minimum);
430
return (_size +
SerializationHelper
.VarSize(_size));
450
_size += newEntry.Size +
SerializationHelper
.VarSize(newEntry.Size) +
SerializationHelper
.VarSize((uint)newEntry.Tag);
485
_size += entry.Size +
SerializationHelper
.VarSize(entry.Size) +
SerializationHelper
.VarSize((uint)_Entry.Tag);
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 (11)
254
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out uiTag);
269
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out cbsize);
277
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out uiTag);
287
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out propindex);
295
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out propsize);
398
localBytesRead =
SerializationHelper
.Decode(inputStream, out pointCount);
773
strokeDescriptor.Size +=
SerializationHelper
.VarSize((uint)tag);
810
strokeDescriptor.Size +=
SerializationHelper
.VarSize((uint)KnownTagCache.KnownTagIndex.StrokePropertyList);
818
strokeDescriptor.Size +=
SerializationHelper
.VarSize((uint)tag);
862
uint localBytesWritten = (stream != null) ?
SerializationHelper
.Encode(stream, pointCount) :
SerializationHelper
.VarSize(pointCount);