72 references to PackagingUtilities
WindowsBase (72)
Base\MS\Internal\IO\Packaging\Certificate.cs (1)
115PackagingUtilities.ReliableRead(s, byteArray, 0, (int)s.Length);
Base\MS\Internal\IO\Packaging\CompoundFile\CFStream.cs (2)
234PackagingUtilities.VerifyStreamReadArgs(this, buffer, offset, count); 266PackagingUtilities.VerifyStreamWriteArgs(this, buffer, offset, count);
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileDeflateTransform.cs (3)
121int bytesRead = PackagingUtilities.ReliableRead(source, sourceBuf, 0, compressedSize); 274while ((bytesRead = PackagingUtilities.ReliableRead(source, sourceBuf, 0, sourceBuf.Length)) > 0) 391int bytesRead = PackagingUtilities.ReliableRead(source, _headerBuf, 0, _headerBuf.Length);
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptedStream.cs (5)
224PackagingUtilities.VerifyStreamReadArgs(this, buffer, offset, count); 242PackagingUtilities.VerifyStreamWriteArgs(this, buffer, offset, count); 348int bytesRead = PackagingUtilities.ReliableRead 491PackagingUtilities.CalculateOverlap(memStreamBlock.Offset, memStreamBlock.Stream.Length, 613int bytesRead = PackagingUtilities.ReliableRead(
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (1)
178if (PackagingUtilities.ReliableRead(_publishLicenseStream, _publishLicenseHeaderExtraBytes, 0, numPublishLicenseHeaderExtraBytes)
Base\MS\Internal\IO\Packaging\CompressEmulationStream.cs (2)
70PackagingUtilities.VerifyStreamReadArgs(this, buffer, offset, count); 140PackagingUtilities.VerifyStreamWriteArgs(this, buffer, offset, count);
Base\MS\Internal\IO\Packaging\CompressStream.cs (2)
77PackagingUtilities.VerifyStreamReadArgs(this, buffer, offset, count); 151PackagingUtilities.VerifyStreamWriteArgs(this, buffer, offset, count);
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (2)
105PackagingUtilities.VerifyStreamReadArgs(this, buffer, offset, count); 253PackagingUtilities.VerifyStreamWriteArgs(this, buffer, offset, count);
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (10)
303PackagingUtilities.PerformInitailReadAndVerifyEncoding(baseReader); 315&& (String.CompareOrdinal(PackagingUtilities.RelationshipNamespaceUri, reader.NamespaceURI) == 0)) 321if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) > 0) 339&& (String.CompareOrdinal(PackagingUtilities.RelationshipNamespaceUri, reader.NamespaceURI) == 0)) 351if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) == expectedAttributesCount) 528writer.WriteStartElement(RelationshipsTagName, PackagingUtilities.RelationshipNamespaceUri); 611_relationshipPart = _package.CreatePart(_uri, PackagingUtilities.RelationshipPartContentType.ToString(), compressionOption); 653if (!contentType.AreTypeAndSubTypeEqual(PackagingUtilities.RelationshipPartContentType)) 787RelationshipsTagName, PackagingUtilities.RelationshipNamespaceUri); 827= new string[] { PackagingUtilities.RelationshipNamespaceUri };
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (3)
575PackagingUtilities.PerformInitailReadAndVerifyEncoding(reader); 589if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) != 0) 617attributesCount = PackagingUtilities.GetNonXmlnsAttributeCount(reader);
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (14)
99lock (PackagingUtilities.IsolatedStorageFileLock) 188PackagingUtilities.VerifyStreamReadArgs(this, buffer, offset, count); 213lock (PackagingUtilities.IsolatedStorageFileLock) 237PackagingUtilities.CalculateOverlap(memStreamBlock.Offset, (int)memStreamBlock.Stream.Length, 268PackagingUtilities.VerifyStreamWriteArgs(this, buffer, offset, count); 281lock (PackagingUtilities.IsolatedStorageFileLock) 322lock (PackagingUtilities.IsolatedStorageFileLock) 325PackagingUtilities.CopyStream(_isolatedStorageStream, stream, 672lock (PackagingUtilities.IsolatedStorageFileLock) 676PackagingUtilities.CopyStream(_isolatedStorageStream, newMemStreamBlock.Stream, 691lock (PackagingUtilities.IsolatedStorageFileLock) 706lock (PackagingUtilities.IsoStoreSyncRoot) 709lock (PackagingUtilities.IsolatedStorageFileLock) 816_isolatedStorageStream = PackagingUtilities.CreateUserScopedIsolatedStorageFileStreamWithRandomName(
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (2)
550writer.WriteStartElement(XTable.Get(XTable.ID.RelationshipsTagName), PackagingUtilities.RelationshipNamespaceUri); 669PackagingUtilities.PerformInitailReadAndVerifyEncoding(xmlReader);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (7)
169if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) > 1 196if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) > 0 222if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) == 1) 327if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) != 0) 350if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) == 1) 431&& PackagingUtilities.GetNonXmlnsAttributeCount(reader) == 1 649string relPartContentType = PackagingUtilities.RelationshipPartContentType.ToString();
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (3)
263&& PackagingUtilities.GetNonXmlnsAttributeCount(reader) == expectedAttributeCount) 273&& PackagingUtilities.GetNonXmlnsAttributeCount(reader) == expectedAttributeCount) 294&& PackagingUtilities.GetNonXmlnsAttributeCount(reader) == expectedAttributeCount)
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (3)
385int bytesRead = PackagingUtilities.ReliableRead(_archiveStream, tempBuffer, 0, subBlockSize); 698PackagingUtilities.CalculateOverlap(onDiskOffset, onDiskSize, 734long bytesCopied = PackagingUtilities.CopyStream(stream, cachePrefixStream, blockSizeToCache, 4096);
Base\MS\Internal\IO\Zip\ZipIOEndOfCentralDirectoryBlock.cs (1)
323int bytesRead = PackagingUtilities.ReliableRead(archiveStream, buffer, 0, buffer.Length);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldElement.cs (1)
123if ((PackagingUtilities.ReliableRead(reader, _data, _size, size - _size) + _size) != size)
Base\MS\Internal\IO\Zip\ZipIOFileItemStream.cs (2)
177PackagingUtilities.VerifyStreamReadArgs(this, buffer, offset, count); 269PackagingUtilities.VerifyStreamWriteArgs(this, buffer, offset, count);
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (1)
1374PackagingUtilities.ReliableRead(transformDefinition, instanceData, 0, instanceDataSize);
Base\System\IO\Packaging\EncryptedPackage.cs (1)
1161PackagingUtilities.CopyStream(packageStream, _packageStream,
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
354_transformDictionary[PackagingUtilities.RelationshipPartContentType.ToString()] = SignedXml.XmlDsigC14NTransformUrl; // relationship parts
Base\System\IO\Packaging\ZipPackage.cs (4)
1130PackagingUtilities.PerformInitailReadAndVerifyEncoding(reader); 1146if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) > 0) 1329if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) != 2) 1360if (PackagingUtilities.GetNonXmlnsAttributeCount(reader) != 2)
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
628PackagingUtilities.DeleteIsolatedStorageFile(_path);