Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / BamlBinaryWriter.cs / 1305600 / BamlBinaryWriter.cs
/****************************************************************************\ * * File: BamlBinaryWriter.cs * * Purpose: Subclass BinaryWriter. * * Copyright (C) 2006 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.IO; using System.Text; #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { internal class BamlBinaryWriter: BinaryWriter { public BamlBinaryWriter(Stream stream, Encoding code) :base(stream, code) { } public new void Write7BitEncodedInt(int value) { base.Write7BitEncodedInt(value); } public static int SizeOf7bitEncodedSize(int size) { const int _7bits = 0x7F; const int _14bits = ( _7bits << 7) | _7bits; const int _21bits = (_14bits << 7) | _7bits; const int _28bits = (_21bits << 7) | _7bits; if (0 == (size & ~_7bits)) return 1; if (0 == (size & ~_14bits)) return 2; if (0 == (size & ~_21bits)) return 3; if (0 == (size & ~_28bits)) return 4; return 5; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsListViewGroup.cs
- DoubleAnimationUsingKeyFrames.cs
- XmlSchemaIdentityConstraint.cs
- ListBoxItemWrapperAutomationPeer.cs
- Rotation3D.cs
- SignedXml.cs
- WindowsMenu.cs
- ConfigXmlCDataSection.cs
- ContentType.cs
- HyperLinkColumn.cs
- SimpleBitVector32.cs
- UnknownExceptionActionHelper.cs
- ContentTextAutomationPeer.cs
- ProcessingInstructionAction.cs
- CodeTypeDeclaration.cs
- NativeRecognizer.cs
- diagnosticsswitches.cs
- ComponentDesigner.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DesignerCatalogPartChrome.cs
- ValueOfAction.cs
- XmlSchemaSet.cs
- Message.cs
- ToolboxComponentsCreatedEventArgs.cs
- WebPartUserCapability.cs
- XsltContext.cs
- SubstitutionDesigner.cs
- MeasureData.cs
- UIElementCollection.cs
- PageAdapter.cs
- OdbcErrorCollection.cs
- CodeVariableReferenceExpression.cs
- AsyncCompletedEventArgs.cs
- MemberAccessException.cs
- AsyncPostBackErrorEventArgs.cs
- XmlHierarchyData.cs
- ArrayElementGridEntry.cs
- ElapsedEventArgs.cs
- NamedElement.cs
- PrintPreviewControl.cs
- MetadataUtil.cs
- XmlNodeComparer.cs
- BackgroundWorker.cs
- OperationResponse.cs
- BaseParser.cs
- ScaleTransform3D.cs
- Bits.cs
- CancellationScope.cs
- InputProcessorProfiles.cs
- Operators.cs
- DataColumnMapping.cs
- XmlDictionaryString.cs
- MeasurementDCInfo.cs
- SQLDateTimeStorage.cs
- ExpanderAutomationPeer.cs
- AppModelKnownContentFactory.cs
- DataServiceHostWrapper.cs
- DbConnectionHelper.cs
- ThreadExceptionEvent.cs
- WindowsContainer.cs
- EntityViewGenerator.cs
- TimeoutException.cs
- TemplateControlBuildProvider.cs
- MessageQueueKey.cs
- Avt.cs
- OperationParameterInfoCollection.cs
- CredentialManagerDialog.cs
- QilReplaceVisitor.cs
- TypeBrowser.xaml.cs
- NativeMethodsCLR.cs
- MenuItemBinding.cs
- XmlDictionaryString.cs
- HandlerBase.cs
- FixedPageProcessor.cs
- PathSegment.cs
- CSharpCodeProvider.cs
- MessageDecoder.cs
- RedistVersionInfo.cs
- SerializationInfo.cs
- TranslateTransform3D.cs
- RequestCache.cs
- Persist.cs
- Identifier.cs
- NestedContainer.cs
- ConnectionProviderAttribute.cs
- ConfigurationProperty.cs
- InstanceData.cs
- _NTAuthentication.cs
- XpsViewerException.cs
- TypePropertyEditor.cs
- BackgroundWorker.cs
- XPathSingletonIterator.cs
- FacetEnabledSchemaElement.cs
- SortQuery.cs
- SpnegoTokenProvider.cs
- WSFederationHttpSecurityMode.cs
- UpdatableWrapper.cs
- Add.cs
- DrawingAttributesDefaultValueFactory.cs
- SpeechRecognizer.cs