83 references to ContainerUtilities
WindowsBase (83)
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileReference.cs (13)
130string[] segments = ContainerUtilities.ConvertBackSlashPathToStringArrayPath(reference.FullName); 137bytes += ContainerUtilities.Int32Size; 147bytes += ContainerUtilities.Int32Size; 148bytes += ContainerUtilities.WriteByteLengthPrefixedDWordPaddedUnicodeString(writer, segments[i]); 158bytes += ContainerUtilities.Int32Size; 161bytes += ContainerUtilities.WriteByteLengthPrefixedDWordPaddedUnicodeString(writer, segments[segments.Length - 1]); 178ContainerUtilities.CheckAgainstNull( reader, "reader" ); 187bytesRead += ContainerUtilities.Int32Size; 205bytesRead += ContainerUtilities.Int32Size; 218String str = ContainerUtilities.ReadByteLengthPrefixedDWordPaddedUnicodeString(reader, out byteLength); 229streamName = ContainerUtilities.ReadByteLengthPrefixedDWordPaddedUnicodeString(reader, out byteLength); 248ContainerUtilities.ConvertStringArrayPathToBackSlashPath(storageList)); 252ContainerUtilities.ConvertStringArrayPathToBackSlashPath(storageList, streamName));
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileStorageReference.cs (2)
147if (fullName.StartsWith(ContainerUtilities.PathSeparatorAsString, StringComparison.Ordinal)) 154string[] strings = ContainerUtilities.ConvertBackSlashPathToStringArrayPath(_fullName);
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileStreamReference.cs (5)
75ContainerUtilities.CheckStringAgainstNullAndEmpty( streamName, "streamName" ); 83sb.Append(ContainerUtilities.PathSeparator); 150ContainerUtilities.CheckStringAgainstNullAndEmpty(fullName, "fullName"); 155if (fullName.StartsWith(ContainerUtilities.PathSeparatorAsString, StringComparison.Ordinal)) 160string[] strings = ContainerUtilities.ConvertBackSlashPathToStringArrayPath(fullName);
Base\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
59static readonly internal string PathSeparatorAsString = new string(ContainerUtilities.PathSeparator, 1);
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (14)
39using CU = MS.Internal.IO.Packaging.CompoundFile.ContainerUtilities; 154if (headerLen < CU.Int32Size) 174Int32 numPublishLicenseHeaderExtraBytes = headerLen - CU.Int32Size; 267Int32 headerLen = CU.Int32Size; 9512 * CU.Int32Size + 953CU.CalculateDWordPadBytesLength(utf8ByteLength)); 1156if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals( 1163else if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals( 1320int extra = length % CU.Int32Size; 1324byte[] bytes = reader.ReadBytes(CU.Int32Size - extra); 1325if (bytes.Length != CU.Int32Size - extra) 1342int extra = length % CU.Int32Size; 1346writer.Write(Padding, 0, CU.Int32Size - extra); 1454private static readonly int UseLicenseStreamLengthMin = 2 * CU.Int32Size + SizeofByte;
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (22)
30using CU = MS.Internal.IO.Packaging.CompoundFile.ContainerUtilities; 443_transformLookupTable = new Hashtable(CU.StringCaseInsensitiveComparer); 467_dataSpaceDefinitions = new Hashtable(CU.StringCaseInsensitiveComparer); 468_transformDefinitions = new Hashtable(CU.StringCaseInsensitiveComparer); 609CU.CheckStringAgainstNullAndEmpty(newDataSpaceLabel, "newDataSpaceLabel"); 612CU.CheckStringAgainstReservedName(newDataSpaceLabel, "newDataSpaceLabel"); 622CU.CheckStringAgainstNullAndEmpty( transformLabel, "Transform label" ); 645CU.CheckStringAgainstNullAndEmpty(dataSpaceLabel, "dataSpaceLabel"); 749if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(transformClassName, 754else if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(transformClassName, 934CU.CheckStringAgainstNullAndEmpty( transformClassName, "Transform identifier name" ); 937CU.CheckStringAgainstNullAndEmpty( newTransformLabel, "Transform label" ); 940CU.CheckStringAgainstReservedName( newTransformLabel, "Transform label" ); 1102string label = CU.ReadByteLengthPrefixedDWordPaddedUnicodeString(dataSpaceMapReader, out bytesRead); 1167checked { entryLength += CU.WriteByteLengthPrefixedDWordPaddedUnicodeString(null, label); } 1179CU.WriteByteLengthPrefixedDWordPaddedUnicodeString( 1242CU.ReadByteLengthPrefixedDWordPaddedUnicodeString( definitionReader ) ); 1303CU.WriteByteLengthPrefixedDWordPaddedUnicodeString( 1347new TransformInstance(transformType, CU.ReadByteLengthPrefixedDWordPaddedUnicodeString( definitionReader ) ); 1464CU.WriteByteLengthPrefixedDWordPaddedUnicodeString( null, transformInstance.typeName)); 1476CU.WriteByteLengthPrefixedDWordPaddedUnicodeString( 1624if (!((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(_fileFormatVersion.FeatureIdentifier,
Base\System\IO\Packaging\CompoundFile\FormatVersion.cs (14)
329len += ContainerUtilities.WriteByteLengthPrefixedDWordPaddedUnicodeString(binarywriter, _featureIdentifier); 341len += ContainerUtilities.Int16Size; 342len += ContainerUtilities.Int16Size; 354len += ContainerUtilities.Int16Size; 355len += ContainerUtilities.Int16Size; 367len += ContainerUtilities.Int16Size; 368len += ContainerUtilities.Int16Size; 470ver._featureIdentifier = ContainerUtilities.ReadByteLengthPrefixedDWordPaddedUnicodeString(reader, out strBytes); 481bytesRead += ContainerUtilities.Int16Size; 483bytesRead += ContainerUtilities.Int16Size; 492bytesRead += ContainerUtilities.Int16Size; 494bytesRead += ContainerUtilities.Int16Size; 503bytesRead += ContainerUtilities.Int16Size; 505bytesRead += ContainerUtilities.Int16Size;
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (8)
34using CU = MS.Internal.IO.Packaging.CompoundFile.ContainerUtilities; 60elementInfoCores = new Hashtable(CU.StringCaseInsensitiveComparer); 181CU.CheckAgainstNull( parent, "parent" ); 182CU.CheckAgainstNull( fileName, "fileName" ); 300if (((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(name, 602return CU.ConvertStringArrayPathToBackSlashPath(BuildFullNameInternalFromParentNameInternal()); 921if(((IEqualityComparer) CU.StringCaseInsensitiveComparer).Equals(streamName, 1381if( CU.IsReservedName(externalName ) )
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (1)
261ContainerUtilities.CheckStringAgainstNullAndEmpty( path, "Path" );
Base\System\IO\Packaging\CompoundFile\StreamInfo.cs (3)
30using CU = MS.Internal.IO.Packaging.CompoundFile.ContainerUtilities; 162CU.CheckAgainstNull( parent, "parent" ); 163CU.CheckStringAgainstNullAndEmpty( streamName, "streamName" );