Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Markup / BamlBinaryWriter.cs / 1 / 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
- _WebProxyDataBuilder.cs
- SqlNodeTypeOperators.cs
- SqlNotificationEventArgs.cs
- TextServicesLoader.cs
- HtmlMeta.cs
- HttpListenerPrefixCollection.cs
- Renderer.cs
- ScrollViewer.cs
- NonDualMessageSecurityOverHttp.cs
- SliderAutomationPeer.cs
- LineMetrics.cs
- StructureChangedEventArgs.cs
- RTLAwareMessageBox.cs
- LeafCellTreeNode.cs
- ProgressPage.cs
- IntPtr.cs
- filewebresponse.cs
- SimpleRecyclingCache.cs
- BitmapDownload.cs
- DataSourceProvider.cs
- WebConfigurationFileMap.cs
- Sentence.cs
- CharacterMetricsDictionary.cs
- StructuredTypeEmitter.cs
- DataIdProcessor.cs
- SQLRoleProvider.cs
- WorkflowExecutor.cs
- DirectionalLight.cs
- SqlBulkCopyColumnMapping.cs
- BooleanProjectedSlot.cs
- DrawingImage.cs
- CodeSubDirectory.cs
- GatewayDefinition.cs
- EnumerableRowCollectionExtensions.cs
- Item.cs
- InfoCardConstants.cs
- IconBitmapDecoder.cs
- DataGridViewColumnCollectionDialog.cs
- SqlSelectClauseBuilder.cs
- StrokeCollection2.cs
- listviewsubitemcollectioneditor.cs
- ValidationErrorCollection.cs
- CommandBinding.cs
- CmsInterop.cs
- ExpandedWrapper.cs
- AddressAccessDeniedException.cs
- InOutArgumentConverter.cs
- TransformGroup.cs
- SubclassTypeValidator.cs
- BinaryParser.cs
- PageAction.cs
- Message.cs
- GlyphTypeface.cs
- TimeSpanSecondsConverter.cs
- LoadGrammarCompletedEventArgs.cs
- RoutedEventArgs.cs
- InputScope.cs
- ClientFormsAuthenticationCredentials.cs
- TableRowGroupCollection.cs
- ZipIORawDataFileBlock.cs
- ManifestResourceInfo.cs
- ProcessHostMapPath.cs
- TrackingProfile.cs
- Boolean.cs
- EntityDataSourceValidationException.cs
- FixedFlowMap.cs
- NativeCppClassAttribute.cs
- TraceHwndHost.cs
- HandlerBase.cs
- TileBrush.cs
- OperatingSystem.cs
- ObjectParameterCollection.cs
- StrokeCollectionConverter.cs
- StructuralObject.cs
- AdornerLayer.cs
- RoleManagerSection.cs
- FunctionDetailsReader.cs
- HttpHeaderCollection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- TabletCollection.cs
- TypeCodeDomSerializer.cs
- CapabilitiesPattern.cs
- NeedSkipTokenVisitor.cs
- QilXmlReader.cs
- LicFileLicenseProvider.cs
- _KerberosClient.cs
- StoreItemCollection.cs
- SingleAnimationUsingKeyFrames.cs
- PointAnimationClockResource.cs
- UrlPropertyAttribute.cs
- RegionIterator.cs
- OracleMonthSpan.cs
- SerialPort.cs
- BCLDebug.cs
- BadImageFormatException.cs
- ListViewInsertionMark.cs
- SmtpMail.cs
- PasswordRecoveryDesigner.cs
- DataReceivedEventArgs.cs
- TextLine.cs