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
- XPathNavigator.cs
- CreateUserWizard.cs
- ServiceRouteHandler.cs
- UnauthorizedAccessException.cs
- AssemblyFilter.cs
- Token.cs
- ThreadStateException.cs
- ExpressionConverter.cs
- ToolStripPanelRow.cs
- ReceiveMessageRecord.cs
- ObservableCollection.cs
- SimpleHandlerFactory.cs
- AccessDataSource.cs
- UIElementAutomationPeer.cs
- Item.cs
- ExpanderAutomationPeer.cs
- RepeatInfo.cs
- _NegoStream.cs
- NamespaceList.cs
- XmlArrayItemAttributes.cs
- FlowDocumentView.cs
- PublisherMembershipCondition.cs
- HtmlTextArea.cs
- TimeStampChecker.cs
- CodeIndexerExpression.cs
- CodeExpressionCollection.cs
- HtmlWindowCollection.cs
- RtfNavigator.cs
- InfoCardTrace.cs
- UnsupportedPolicyOptionsException.cs
- DomainUpDown.cs
- DecoderFallbackWithFailureFlag.cs
- InternalRelationshipCollection.cs
- AsyncOperationManager.cs
- ControlAdapter.cs
- DesignerDataStoredProcedure.cs
- WebPermission.cs
- CategoryList.cs
- SamlAuthorityBinding.cs
- EntitySqlQueryState.cs
- Stopwatch.cs
- DSGeneratorProblem.cs
- FirewallWrapper.cs
- Helpers.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ImageBrush.cs
- UrlPropertyAttribute.cs
- EnumerableRowCollectionExtensions.cs
- NativeMethods.cs
- File.cs
- SecurityContext.cs
- TcpPortSharing.cs
- DropShadowBitmapEffect.cs
- AttributeSetAction.cs
- IndexedString.cs
- SubpageParaClient.cs
- MessageDecoder.cs
- ChannelServices.cs
- DataGridColumnDropSeparator.cs
- DesignerTextWriter.cs
- EastAsianLunisolarCalendar.cs
- UriSection.cs
- RadioButtonFlatAdapter.cs
- ClientSettingsStore.cs
- DesignSurfaceCollection.cs
- ProcessManager.cs
- HtmlInputControl.cs
- SafeRightsManagementSessionHandle.cs
- AsymmetricSignatureFormatter.cs
- ReadOnlyNameValueCollection.cs
- SerialReceived.cs
- RepeaterCommandEventArgs.cs
- SpeechAudioFormatInfo.cs
- DataGridViewButtonColumn.cs
- Focus.cs
- SAPIEngineTypes.cs
- FormView.cs
- ConditionCollection.cs
- CqlGenerator.cs
- JoinSymbol.cs
- EntityDesignPluralizationHandler.cs
- SqlCacheDependencySection.cs
- Light.cs
- UpWmlPageAdapter.cs
- CapabilitiesState.cs
- CodeCatchClauseCollection.cs
- SqlParameter.cs
- UnionExpr.cs
- BmpBitmapDecoder.cs
- Int64.cs
- ContentValidator.cs
- StrokeCollectionDefaultValueFactory.cs
- ResourceManager.cs
- FileEnumerator.cs
- WithParamAction.cs
- FileSystemInfo.cs
- _CacheStreams.cs
- EdmType.cs
- TextEditorThreadLocalStore.cs
- brushes.cs