18 references to VarSize
PresentationCore (18)
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (2)
220
return (uint)(ul + SerializationHelper.
VarSize
(ul) + SerializationHelper.
VarSize
((uint)KnownTagCache.KnownTagIndex.GuidTable));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
1752
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)SerializationHelper.
VarSize
((uint)CurrentPersistenceFormat));
2042
cbWrote += SerializationHelper.Encode(strm, (uint)(data.Length + SerializationHelper.
VarSize
((uint)strokes.Count)));
2055
uint cbStrokeId = (uint)(strokes.Count * Native.SizeOfInt + 1 + SerializationHelper.
VarSize
((uint)strokes.Count)); // 1 is for the compression header
2224
cbTotal += SerializationHelper.
VarSize
((_strokeDescriptorTable[count]).Size) + (_strokeDescriptorTable[count]).Size;
2332
uint cbLocal = SerializationHelper.
VarSize
((uint)xform.Tag);
2338
cbLocal = SerializationHelper.
VarSize
((uint)(xform.Transform[0] + 0.5f));
2489
sizeOfHeaderInBytes += SerializationHelper.
VarSize
(sizes[i]) + sizes[i];
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (5)
431
return (_size + SerializationHelper.
VarSize
(_size));
451
_size += newEntry.Size + SerializationHelper.
VarSize
(newEntry.Size) + SerializationHelper.
VarSize
((uint)newEntry.Tag);
486
_size += entry.Size + SerializationHelper.
VarSize
(entry.Size) + SerializationHelper.
VarSize
((uint)_Entry.Tag);
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
727
strokeDescriptor.Size += SerializationHelper.
VarSize
((uint)tag);
764
strokeDescriptor.Size += SerializationHelper.
VarSize
((uint)KnownTagCache.KnownTagIndex.StrokePropertyList);
772
strokeDescriptor.Size += SerializationHelper.
VarSize
((uint)tag);
807
uint localBytesWritten = (stream != null) ? SerializationHelper.Encode(stream, pointCount) : SerializationHelper.
VarSize
(pointCount);