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