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
- TextServicesManager.cs
- SerialErrors.cs
- CssClassPropertyAttribute.cs
- DataControlLinkButton.cs
- PlaceHolder.cs
- EncoderParameter.cs
- RoleBoolean.cs
- CorrelationTokenTypeConvertor.cs
- Walker.cs
- RouteUrlExpressionBuilder.cs
- Label.cs
- RelationshipManager.cs
- ExtensibleSyndicationObject.cs
- DefaultExpressionVisitor.cs
- AutomationElementIdentifiers.cs
- StringSource.cs
- OrderedHashRepartitionStream.cs
- DecimalAverageAggregationOperator.cs
- SafeNativeMethods.cs
- DbCommandDefinition.cs
- MailSettingsSection.cs
- UrlPath.cs
- Inline.cs
- BamlResourceSerializer.cs
- TemplateBindingExtensionConverter.cs
- CustomAttributeBuilder.cs
- DataGrid.cs
- MenuCommands.cs
- RepeatInfo.cs
- DataGridTemplateColumn.cs
- ExceptionUtil.cs
- PenThread.cs
- TypeBinaryExpression.cs
- DeferredReference.cs
- CachedTypeface.cs
- FileLevelControlBuilderAttribute.cs
- HighlightVisual.cs
- MSAAEventDispatcher.cs
- ClusterRegistryConfigurationProvider.cs
- XmlSchemaComplexContentExtension.cs
- DependencyPropertyDescriptor.cs
- PathGradientBrush.cs
- TextEditorThreadLocalStore.cs
- DbDataAdapter.cs
- BaseAutoFormat.cs
- odbcmetadatafactory.cs
- MimeReflector.cs
- PieceDirectory.cs
- DynamicResourceExtensionConverter.cs
- FunctionMappingTranslator.cs
- CharacterMetricsDictionary.cs
- ElementsClipboardData.cs
- DrawingVisual.cs
- SqlConnectionHelper.cs
- PageRequestManager.cs
- DetailsViewDeleteEventArgs.cs
- ConfigXmlText.cs
- PersistenceTypeAttribute.cs
- DataRelation.cs
- AsyncPostBackErrorEventArgs.cs
- HttpRuntimeSection.cs
- ToRequest.cs
- ActivityMarkupSerializer.cs
- HttpException.cs
- PagePropertiesChangingEventArgs.cs
- PathGradientBrush.cs
- safesecurityhelperavalon.cs
- ObjectKeyFrameCollection.cs
- TextEditorThreadLocalStore.cs
- HtmlTitle.cs
- TextTreeUndoUnit.cs
- ImageFormatConverter.cs
- DropAnimation.xaml.cs
- assemblycache.cs
- BulletedListEventArgs.cs
- SqlInternalConnectionTds.cs
- WmlTextBoxAdapter.cs
- Command.cs
- BidPrivateBase.cs
- MulticastIPAddressInformationCollection.cs
- ISAPIApplicationHost.cs
- ExpandCollapsePattern.cs
- SafeEventLogWriteHandle.cs
- SizeAnimationUsingKeyFrames.cs
- SecurityChannelListener.cs
- CacheDict.cs
- IPipelineRuntime.cs
- OneOfConst.cs
- HeaderElement.cs
- ButtonBaseDesigner.cs
- EntityConnection.cs
- APCustomTypeDescriptor.cs
- XmlIlTypeHelper.cs
- FormViewModeEventArgs.cs
- DelegatedStream.cs
- dtdvalidator.cs
- CustomBindingCollectionElement.cs
- SecurityPolicySection.cs
- Deserializer.cs
- Int32Rect.cs