18 references to VarSize
PresentationCore (18)
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (2)
224
return (uint)(ul + SerializationHelper.
VarSize
(ul) + SerializationHelper.
VarSize
((uint)KnownTagCache.KnownTagIndex.GuidTable));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
1767
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)SerializationHelper.
VarSize
((uint)CurrentPersistenceFormat));
2057
cbWrote += SerializationHelper.Encode(strm, (uint)(data.Length + SerializationHelper.
VarSize
((uint)strokes.Count)));
2070
uint cbStrokeId = (uint)(strokes.Count * Native.SizeOfInt + 1 + SerializationHelper.
VarSize
((uint)strokes.Count)); // 1 is for the compression header
2247
cbTotal += SerializationHelper.
VarSize
((_strokeDescriptorTable[count]).Size) + (_strokeDescriptorTable[count]).Size;
2355
uint cbLocal = SerializationHelper.
VarSize
((uint)xform.Tag);
2361
cbLocal = SerializationHelper.
VarSize
((uint)(xform.Transform[0] + 0.5f));
2519
sizeOfHeaderInBytes += SerializationHelper.
VarSize
(sizes[i]) + sizes[i];
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (5)
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);
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
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);