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
- SortDescriptionCollection.cs
- GridViewDeletedEventArgs.cs
- LazyTextWriterCreator.cs
- NamespaceExpr.cs
- EventDriven.cs
- TextSelectionHighlightLayer.cs
- DependencyPropertyKind.cs
- CodeDOMProvider.cs
- DesignerLabelAdapter.cs
- OleDbErrorCollection.cs
- RemotingConfiguration.cs
- ParserContext.cs
- CodeEventReferenceExpression.cs
- PublisherIdentityPermission.cs
- DiagnosticTraceSchemas.cs
- PagedControl.cs
- WorkflowItemsPresenter.cs
- NetTcpSecurity.cs
- ExtensionMethods.cs
- activationcontext.cs
- WebPartPersonalization.cs
- ForEachAction.cs
- ToolboxItemLoader.cs
- Char.cs
- UmAlQuraCalendar.cs
- TransactionManager.cs
- ComponentChangedEvent.cs
- EntityContainerEmitter.cs
- StreamReader.cs
- QilTernary.cs
- XPathSelectionIterator.cs
- LineBreakRecord.cs
- DnsCache.cs
- XmlSerializerFactory.cs
- AtomMaterializer.cs
- MembershipUser.cs
- DependencyPropertyValueSerializer.cs
- MouseEventArgs.cs
- GenericTextProperties.cs
- RuntimeCompatibilityAttribute.cs
- HintTextConverter.cs
- NativeMethods.cs
- RegistryKey.cs
- AssociationType.cs
- HostingEnvironment.cs
- SplashScreenNativeMethods.cs
- SynchronizedPool.cs
- AutoGeneratedField.cs
- RowUpdatedEventArgs.cs
- DataSourceCacheDurationConverter.cs
- WinInetCache.cs
- GeneralTransform3DGroup.cs
- PointValueSerializer.cs
- PropagatorResult.cs
- PowerStatus.cs
- SystemInformation.cs
- StylusSystemGestureEventArgs.cs
- CounterCreationData.cs
- Utility.cs
- NonVisualControlAttribute.cs
- LOSFormatter.cs
- ConfigurationErrorsException.cs
- SplineKeyFrames.cs
- DragEvent.cs
- EntityContainerEntitySet.cs
- AssemblyBuilder.cs
- TextContainerHelper.cs
- ModifiableIteratorCollection.cs
- AppSettingsExpressionBuilder.cs
- TdsParserStaticMethods.cs
- RoutingChannelExtension.cs
- BulletedListEventArgs.cs
- EmptyElement.cs
- HTMLTagNameToTypeMapper.cs
- ReadOnlyDataSource.cs
- Point4DConverter.cs
- ScheduleChanges.cs
- UnionCodeGroup.cs
- CustomBinding.cs
- PostBackTrigger.cs
- EntityContainerEntitySet.cs
- EastAsianLunisolarCalendar.cs
- BulletChrome.cs
- HyperLink.cs
- Ref.cs
- ActionFrame.cs
- GPPOINTF.cs
- StatusBar.cs
- ContentControl.cs
- FixedSOMImage.cs
- ProgressBarAutomationPeer.cs
- ResourceExpression.cs
- TextOnlyOutput.cs
- DataObject.cs
- ServiceReference.cs
- JoinElimination.cs
- ResourceContainer.cs
- cookiecollection.cs
- ContainerParaClient.cs
- EntityCommandExecutionException.cs