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
- RawAppCommandInputReport.cs
- MediaPlayer.cs
- RtfControls.cs
- CompModSwitches.cs
- HideDisabledControlAdapter.cs
- ManifestResourceInfo.cs
- ServiceElementCollection.cs
- ListViewItemEventArgs.cs
- MemoryRecordBuffer.cs
- SplashScreenNativeMethods.cs
- PagePropertiesChangingEventArgs.cs
- RSACryptoServiceProvider.cs
- DefaultTypeArgumentAttribute.cs
- BooleanFunctions.cs
- WizardPanelChangingEventArgs.cs
- shaper.cs
- OpenTypeCommon.cs
- XmlIgnoreAttribute.cs
- MessageSecurityOverTcpElement.cs
- WithStatement.cs
- CodeSnippetStatement.cs
- SerializationObjectManager.cs
- SecurityDocument.cs
- JpegBitmapDecoder.cs
- DbConnectionOptions.cs
- StagingAreaInputItem.cs
- SoundPlayer.cs
- TypeSystem.cs
- CharStorage.cs
- XslTransform.cs
- EdgeProfileValidation.cs
- ProfileService.cs
- DataObjectFieldAttribute.cs
- CacheDependency.cs
- ItemsPanelTemplate.cs
- ComponentConverter.cs
- TileBrush.cs
- DelegatedStream.cs
- DecoderNLS.cs
- GenericPrincipal.cs
- ContextItemManager.cs
- DataGridViewBindingCompleteEventArgs.cs
- TypeConverterHelper.cs
- DocumentGrid.cs
- DurableInstancingOptions.cs
- ListViewInsertEventArgs.cs
- XmlSchemaDatatype.cs
- PEFileEvidenceFactory.cs
- Timeline.cs
- PaperSource.cs
- QilLoop.cs
- MetadataItemEmitter.cs
- XmlComplianceUtil.cs
- InfoCardAsymmetricCrypto.cs
- MetadataArtifactLoaderComposite.cs
- smtppermission.cs
- SqlDataSourceTableQuery.cs
- PnrpPeerResolverBindingElement.cs
- PlainXmlDeserializer.cs
- WizardStepBase.cs
- EUCJPEncoding.cs
- ResourceDictionary.cs
- TemplateControlCodeDomTreeGenerator.cs
- ThreadStaticAttribute.cs
- x509store.cs
- RoleServiceManager.cs
- Rules.cs
- MultipartIdentifier.cs
- DetailsViewRowCollection.cs
- DiagnosticsElement.cs
- XmlStreamedByteStreamReader.cs
- OuterGlowBitmapEffect.cs
- Pick.cs
- FieldNameLookup.cs
- KeyManager.cs
- WebPartChrome.cs
- ActionMismatchAddressingException.cs
- rsa.cs
- SessionPageStatePersister.cs
- ProjectedSlot.cs
- FileDialog.cs
- coordinator.cs
- ExecutedRoutedEventArgs.cs
- EmptyElement.cs
- QueryContinueDragEventArgs.cs
- JsonFormatWriterGenerator.cs
- CalendarSelectionChangedEventArgs.cs
- FontFamily.cs
- IListConverters.cs
- PropertyGridView.cs
- Point3DIndependentAnimationStorage.cs
- RootNamespaceAttribute.cs
- FeatureSupport.cs
- CSharpCodeProvider.cs
- MarkupWriter.cs
- MonthChangedEventArgs.cs
- Timer.cs
- Vector.cs
- NullToBooleanConverter.cs
- SqlRewriteScalarSubqueries.cs