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
- DataGridViewRowHeaderCell.cs
- _SingleItemRequestCache.cs
- RowToParametersTransformer.cs
- TraceHandler.cs
- Model3DGroup.cs
- WindowsAuthenticationModule.cs
- LicenseContext.cs
- Util.cs
- Win32PrintDialog.cs
- DiscoveryCallbackBehavior.cs
- TreeNodeStyleCollection.cs
- Bezier.cs
- FacetDescription.cs
- Pipe.cs
- UrlPath.cs
- RichTextBox.cs
- ObjectStateEntryDbDataRecord.cs
- DetailsView.cs
- FormsAuthenticationEventArgs.cs
- ExpressionTextBoxAutomationPeer.cs
- Int32Rect.cs
- ValueExpressions.cs
- DetailsViewInsertEventArgs.cs
- ListControlConvertEventArgs.cs
- PermissionSetTriple.cs
- IISMapPath.cs
- SqlConnectionHelper.cs
- EdmTypeAttribute.cs
- SoapDocumentMethodAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- CompositeCollectionView.cs
- DataObjectCopyingEventArgs.cs
- DefaultWorkflowLoaderService.cs
- SqlVisitor.cs
- BaseParser.cs
- ValidationHelper.cs
- UiaCoreTypesApi.cs
- PropertyMapper.cs
- RSACryptoServiceProvider.cs
- EnumUnknown.cs
- RegionInfo.cs
- ProfileProvider.cs
- AbandonedMutexException.cs
- PointLightBase.cs
- IdnMapping.cs
- ChooseAction.cs
- ICspAsymmetricAlgorithm.cs
- XmlJsonReader.cs
- CommentEmitter.cs
- FormDocumentDesigner.cs
- XmlSchemaObject.cs
- PKCS1MaskGenerationMethod.cs
- HtmlInputHidden.cs
- Identity.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- CursorInteropHelper.cs
- HandleCollector.cs
- NonDualMessageSecurityOverHttp.cs
- DataGridViewIntLinkedList.cs
- OleDbPropertySetGuid.cs
- TextDecoration.cs
- TextElementEnumerator.cs
- GlyphTypeface.cs
- ListBoxChrome.cs
- WindowAutomationPeer.cs
- KeyboardEventArgs.cs
- NodeLabelEditEvent.cs
- Int16AnimationBase.cs
- MenuEventArgs.cs
- ExpressionWriter.cs
- SecurityException.cs
- ContextProperty.cs
- ValueExpressions.cs
- MarkupCompilePass1.cs
- TypeInfo.cs
- ResourcePermissionBaseEntry.cs
- IdleTimeoutMonitor.cs
- InOutArgument.cs
- GeneralTransform3DGroup.cs
- ActivityMetadata.cs
- Perspective.cs
- GrabHandleGlyph.cs
- RequiredFieldValidator.cs
- FixUp.cs
- RenderTargetBitmap.cs
- XmlArrayAttribute.cs
- TextCharacters.cs
- GeneralTransform2DTo3D.cs
- objectquery_tresulttype.cs
- StringFormat.cs
- Utilities.cs
- TimeIntervalCollection.cs
- ServiceElement.cs
- FamilyMap.cs
- SQLGuid.cs
- AssemblyBuilderData.cs
- RoutedEventArgs.cs
- CrossAppDomainChannel.cs
- ChildTable.cs
- ExtensionWindow.cs