Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / IO / compression / DeflateInput.cs / 1305376 / DeflateInput.cs
namespace System.IO.Compression { using System.Diagnostics; internal class DeflateInput { private byte[] buffer; private int count; private int startIndex; internal byte[] Buffer { get { return buffer; } set { buffer = value; } } internal int Count { get { return count; } set { count = value; } } internal int StartIndex { get { return startIndex; } set { startIndex = value; } } internal void ConsumeBytes(int n) { Debug.Assert(n <= count, "Should use more bytes than what we have in the buffer"); startIndex += n; count -= n; Debug.Assert(startIndex + count <= buffer.Length, "Input buffer is in invalid state!"); } internal InputState DumpState() { InputState savedState; savedState.count = count; savedState.startIndex = startIndex; return savedState; } internal void RestoreState(InputState state) { count = state.count; startIndex = state.startIndex; } internal struct InputState { internal int count; internal int startIndex; } } } // 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
- SafeWaitHandle.cs
- SynchronousChannelMergeEnumerator.cs
- HealthMonitoringSectionHelper.cs
- XmlStreamStore.cs
- DetailsView.cs
- DateTimeValueSerializerContext.cs
- TextContainer.cs
- CAGDesigner.cs
- smtpconnection.cs
- BezierSegment.cs
- CompatibleComparer.cs
- CounterSample.cs
- WindowsGraphics2.cs
- DoubleLinkList.cs
- CodeTypeReferenceExpression.cs
- PropertyManager.cs
- FlowLayout.cs
- UpdatePanel.cs
- XmlReflectionMember.cs
- LicenseManager.cs
- ComboBoxAutomationPeer.cs
- MimeTypeAttribute.cs
- OperationResponse.cs
- DbProviderFactoriesConfigurationHandler.cs
- AVElementHelper.cs
- TransactionManager.cs
- SafeCoTaskMem.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ErrorTableItemStyle.cs
- Restrictions.cs
- XmlSchemaSubstitutionGroup.cs
- StructuredTypeEmitter.cs
- ToolStripPanel.cs
- DataGridTableCollection.cs
- RegistryKey.cs
- Vector3DAnimationBase.cs
- TransformGroup.cs
- XmlSchemaComplexContentExtension.cs
- PerfCounterSection.cs
- Brush.cs
- SerializationEventsCache.cs
- SuppressMessageAttribute.cs
- ScrollEventArgs.cs
- MenuCommand.cs
- TextContainer.cs
- PhysicalFontFamily.cs
- ScriptResourceDefinition.cs
- UniqueIdentifierService.cs
- __Filters.cs
- HtmlTableCell.cs
- SetterBaseCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- SpeechRecognizer.cs
- DrawingGroup.cs
- Timer.cs
- ControlBindingsConverter.cs
- XmlSchemaProviderAttribute.cs
- DataRow.cs
- PeerName.cs
- HyperLink.cs
- _KerberosClient.cs
- DataGridComponentEditor.cs
- HuffmanTree.cs
- PathFigure.cs
- FrameworkEventSource.cs
- ApplicationManager.cs
- Polygon.cs
- WebCodeGenerator.cs
- InkSerializer.cs
- ThousandthOfEmRealPoints.cs
- MimePart.cs
- DropShadowEffect.cs
- CryptoStream.cs
- HttpFileCollectionBase.cs
- BamlLocalizabilityResolver.cs
- RequestResizeEvent.cs
- WebPartEditVerb.cs
- DataSourceCache.cs
- SchemaInfo.cs
- DiscreteKeyFrames.cs
- SchemaObjectWriter.cs
- ByteKeyFrameCollection.cs
- WebPartManagerInternals.cs
- DependencyPropertyAttribute.cs
- AssemblyBuilder.cs
- Token.cs
- Connection.cs
- EventBookmark.cs
- GeometryHitTestResult.cs
- VSWCFServiceContractGenerator.cs
- XamlToRtfParser.cs
- CodeSnippetCompileUnit.cs
- MailWebEventProvider.cs
- PersistenceProviderBehavior.cs
- SymmetricAlgorithm.cs
- CustomCredentialPolicy.cs
- PeerToPeerException.cs
- TemplateBindingExtensionConverter.cs
- UnsignedPublishLicense.cs
- X509SecurityTokenProvider.cs