146 references to SerializationHelper
PresentationCore (146)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (6)
74
interopTypeInfo =
SerializationHelper
.ConvertToVarEnum(attribute.Value.GetType(), true);
332
cbWrite +=
SerializationHelper
.Encode(strm, uTag);
370
cbWrite +=
SerializationHelper
.Encode(strm, (uint)(compresseddata.Length - 1));
434
cb =
SerializationHelper
.Decode(stream, out uiTag);
460
cb =
SerializationHelper
.Decode(stream, out size);
912
VarEnum varEnum =
SerializationHelper
.ConvertToVarEnum(value.GetType(), true);
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (26)
140
uint cb =
SerializationHelper
.Decode (stream, out uiTag);
161
cb =
SerializationHelper
.Decode (stream, out dw);
171
cb =
SerializationHelper
.Decode(stream, out dw);
178
cb =
SerializationHelper
.Decode (stream, out dw);
204
cb =
SerializationHelper
.Decode (stream, out dw);
211
cb =
SerializationHelper
.Decode (stream, out dw);
216
cb =
SerializationHelper
.Decode (stream, out dw);
222
cb =
SerializationHelper
.Decode (stream, out cbInSize);
269
cb =
SerializationHelper
.Decode(stream, out dw);
275
cb =
SerializationHelper
.Decode(stream, out dw);
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);
622
System.Runtime.InteropServices.VarEnum type =
SerializationHelper
.ConvertToVarEnum(PersistenceTypes.StylusTip, true);
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 (4)
224
return (uint)(ul +
SerializationHelper
.VarSize(ul) +
SerializationHelper
.VarSize((uint)KnownTagCache.KnownTagIndex.GuidTable));
228
uint cbWrote =
SerializationHelper
.Encode(stream, (uint)KnownTagCache.KnownTagIndex.GuidTable);
231
cbWrote +=
SerializationHelper
.Encode(stream, ul);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (82)
220
cb =
SerializationHelper
.Decode(isfStream, out count);
354
uint localBytesDecoded =
SerializationHelper
.Decode(inputStream, out uiTag);
359
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out remainingBytesInStream);
369
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out uiTag);
396
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out bytesDecodedInCurrentTag);
498
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out fmt);
518
localBytesDecoded =
SerializationHelper
.SignDecode(inputStream, out sz);
523
localBytesDecoded +=
SerializationHelper
.SignDecode(inputStream, out sz);
708
bytesDecodedInCurrentTag =
SerializationHelper
.Decode(inputStream, out transformTableIndex);
716
bytesDecodedInCurrentTag =
SerializationHelper
.Decode(inputStream, out metricDescriptorTableIndex);
724
bytesDecodedInCurrentTag =
SerializationHelper
.Decode(inputStream, out drawingAttributesTableIndex);
739
bytesDecodedInCurrentTag =
SerializationHelper
.Decode(inputStream, out strokeDescriptorTableIndex);
776
localBytesDecoded =
SerializationHelper
.Decode(inputStream, out bytesDecodedInCurrentTag);
840
uint cb =
SerializationHelper
.Decode(strm, out cbDA);
900
cb =
SerializationHelper
.Decode(strm, out uiTag);
914
cb =
SerializationHelper
.Decode(strm, out cbButton);
924
cb =
SerializationHelper
.Decode(strm, out dw);
941
cb =
SerializationHelper
.Decode(strm, out dw);
1003
cb =
SerializationHelper
.Decode(strm, out cbBlock);
1058
cb =
SerializationHelper
.Decode(strm, out dw);
1107
cb =
SerializationHelper
.Decode(strm, out dw);
1115
cb =
SerializationHelper
.Decode(strm, out size);
1179
cb =
SerializationHelper
.Decode(strm, out uiTag);
1274
cbRead =
SerializationHelper
.Decode(strm, out angle);
1345
cb =
SerializationHelper
.SignDecode(strm, out data);
1356
cb =
SerializationHelper
.SignDecode(strm, out data);
1367
cb =
SerializationHelper
.SignDecode(strm, out data);
1378
cb =
SerializationHelper
.SignDecode(strm, out data);
1514
cbEntry +=
SerializationHelper
.SignDecode(strm, out range);
1523
cbEntry +=
SerializationHelper
.SignDecode(strm, out range);
1534
cbEntry +=
SerializationHelper
.Decode(strm, out cb);
1738
cumulativeEncodedSize +=
SerializationHelper
.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.InkSpaceRectangle);
1742
cumulativeEncodedSize +=
SerializationHelper
.SignEncode(localStream, i);
1744
cumulativeEncodedSize +=
SerializationHelper
.SignEncode(localStream, i);
1746
cumulativeEncodedSize +=
SerializationHelper
.SignEncode(localStream, i);
1748
cumulativeEncodedSize +=
SerializationHelper
.SignEncode(localStream, i);
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);
2070
uint cbStrokeId = (uint)(strokes.Count * Native.SizeOfInt + 1 +
SerializationHelper
.VarSize((uint)strokes.Count)); // 1 is for the compression header
2072
cbWrote +=
SerializationHelper
.Encode(strm, cbStrokeId);
2073
cbWrote +=
SerializationHelper
.Encode(strm, (uint)strokes.Count);
2234
cbData +=
SerializationHelper
.Encode(strm, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorBlock);
2247
cbTotal +=
SerializationHelper
.VarSize((_strokeDescriptorTable[count]).Size) + (_strokeDescriptorTable[count]).Size;
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]);
2355
uint cbLocal =
SerializationHelper
.VarSize((uint)xform.Tag);
2361
cbLocal =
SerializationHelper
.VarSize((uint)(xform.Transform[0] + 0.5f));
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);
2519
sizeOfHeaderInBytes +=
SerializationHelper
.VarSize(sizes[i]) + sizes[i];
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 (17)
236
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Minimum);
238
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Maximum);
240
_size +=
SerializationHelper
.Encode(strm, (uint)originalInfo.Unit);
251
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Minimum);
253
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Maximum);
255
_size +=
SerializationHelper
.Encode(strm, (uint)originalInfo.Unit);
260
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Minimum);
262
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Maximum);
266
_size +=
SerializationHelper
.SignEncode(strm, originalInfo.Minimum);
433
return (_size +
SerializationHelper
.VarSize(_size));
453
_size += newEntry.Size +
SerializationHelper
.VarSize(newEntry.Size) +
SerializationHelper
.VarSize((uint)newEntry.Tag);
488
_size += entry.Size +
SerializationHelper
.VarSize(entry.Size) +
SerializationHelper
.VarSize((uint)_Entry.Tag);
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 (11)
235
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out uiTag);
250
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out cbsize);
258
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out uiTag);
268
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out propindex);
276
locallyDecodedBytes =
SerializationHelper
.Decode(stream, out propsize);
371
localBytesRead =
SerializationHelper
.Decode(inputStream, out pointCount);
734
strokeDescriptor.Size +=
SerializationHelper
.VarSize((uint)tag);
771
strokeDescriptor.Size +=
SerializationHelper
.VarSize((uint)KnownTagCache.KnownTagIndex.StrokePropertyList);
779
strokeDescriptor.Size +=
SerializationHelper
.VarSize((uint)tag);
814
uint localBytesWritten = (stream != null) ?
SerializationHelper
.Encode(stream, pointCount) :
SerializationHelper
.VarSize(pointCount);