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