Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Channels / System / ServiceModel / Channels / ByteStreamMessageUtility.cs / 1305376 / ByteStreamMessageUtility.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { static class ByteStreamMessageUtility { public const string StreamElementName = "Binary"; public const string XmlNamespace = "http://www.w3.org/XML/1998/namespace"; public const string XmlNamespaceNamespace = "http://www.w3.org/2000/xmlns/"; // used when doing message tracing internal const string EncoderName = "ByteStreamMessageEncoder"; internal static void EnsureByteBoundaries(byte[] buffer, int index, int count) { if (buffer == null) { throw FxTrace.Exception.ArgumentNull("buffer"); } if (index < 0) { throw FxTrace.Exception.ArgumentOutOfRange("index", index, SR.ArgumentOutOfMinRange(0)); } if (index >= buffer.Length) { throw FxTrace.Exception.ArgumentOutOfRange("index", index, SR.OffsetExceedsBufferSize(buffer.Length)); } if (count < 0) { throw FxTrace.Exception.ArgumentOutOfRange("count", count, SR.ArgumentOutOfMinRange(0)); } if (count > buffer.Length - index) { throw FxTrace.Exception.ArgumentOutOfRange("count", count, SR.SizeExceedsRemainingBufferSpace(buffer.Length - index)); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NumberAction.cs
- QueryInterceptorAttribute.cs
- SqlTypeConverter.cs
- Double.cs
- SQLSingleStorage.cs
- ArraySortHelper.cs
- ConsoleTraceListener.cs
- MissingFieldException.cs
- StateRuntime.cs
- IntersectQueryOperator.cs
- FactoryGenerator.cs
- ResourceCategoryAttribute.cs
- RuleElement.cs
- StylusPointProperty.cs
- StylusPointProperty.cs
- ComponentRenameEvent.cs
- JsonQueryStringConverter.cs
- WebPartDisplayModeCollection.cs
- ListControlBuilder.cs
- ToolStripMenuItem.cs
- ListSortDescriptionCollection.cs
- EndpointAddressElementBase.cs
- basevalidator.cs
- DbConnectionStringCommon.cs
- ClockController.cs
- DelegateArgumentReference.cs
- SafeBuffer.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- oledbmetadatacollectionnames.cs
- ResponseStream.cs
- ContextMenu.cs
- EmptyReadOnlyDictionaryInternal.cs
- XmlSiteMapProvider.cs
- SqlDataReaderSmi.cs
- DesigntimeLicenseContext.cs
- PageClientProxyGenerator.cs
- newitemfactory.cs
- TypedTableBase.cs
- Hash.cs
- SqlCacheDependencyDatabaseCollection.cs
- Column.cs
- EntityDataSourceUtil.cs
- HttpVersion.cs
- ExtensionDataObject.cs
- ContextQuery.cs
- CompiledIdentityConstraint.cs
- DataSourceControl.cs
- RuntimeHelpers.cs
- Literal.cs
- ZipIOCentralDirectoryBlock.cs
- HtmlInputSubmit.cs
- ModelItemCollectionImpl.cs
- ResourceReferenceExpressionConverter.cs
- SqlNode.cs
- PatternMatcher.cs
- RegexWriter.cs
- ListenerAdapter.cs
- CookielessHelper.cs
- FilterQuery.cs
- AliasedSlot.cs
- FilteredDataSetHelper.cs
- DbConnectionStringBuilder.cs
- FocusChangedEventArgs.cs
- DataSourceSelectArguments.cs
- TypeConverterHelper.cs
- LocalizationParserHooks.cs
- ManagedFilter.cs
- X509AsymmetricSecurityKey.cs
- SpanIndex.cs
- PlainXmlSerializer.cs
- InstanceHandleReference.cs
- DynamicRenderer.cs
- NativeObjectSecurity.cs
- AxisAngleRotation3D.cs
- AdRotator.cs
- ManagedFilter.cs
- CommonDialog.cs
- DefaultMemberAttribute.cs
- _HeaderInfoTable.cs
- MetafileHeader.cs
- FixedTextContainer.cs
- AdPostCacheSubstitution.cs
- DoubleCollectionConverter.cs
- COM2IProvidePropertyBuilderHandler.cs
- ToolBarButtonClickEvent.cs
- CryptoConfig.cs
- InfoCardXmlSerializer.cs
- ListViewTableRow.cs
- CustomValidator.cs
- RenderTargetBitmap.cs
- BypassElementCollection.cs
- BufferedReadStream.cs
- TerminatorSinks.cs
- ApplicationFileParser.cs
- AccessDataSourceView.cs
- StorageConditionPropertyMapping.cs
- DataSourceView.cs
- TablePattern.cs
- ListBoxItemWrapperAutomationPeer.cs
- WebPartDescriptionCollection.cs