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