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
- ProcessingInstructionAction.cs
- ObjectStateEntry.cs
- HealthMonitoringSectionHelper.cs
- TreeWalker.cs
- LiteralSubsegment.cs
- CodeCommentStatement.cs
- XmlSchemaSimpleTypeRestriction.cs
- LogSwitch.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- FrameworkElement.cs
- XmlIlTypeHelper.cs
- InputBinder.cs
- SubclassTypeValidatorAttribute.cs
- PrintDialogException.cs
- JavaScriptObjectDeserializer.cs
- CodeMethodReturnStatement.cs
- AssociationTypeEmitter.cs
- DoubleCollection.cs
- ColorPalette.cs
- GridViewSelectEventArgs.cs
- SingleKeyFrameCollection.cs
- TimeZone.cs
- FilterQuery.cs
- CoreSwitches.cs
- HtmlTable.cs
- ObjectListCommandEventArgs.cs
- RankException.cs
- TransactionProtocolConverter.cs
- PackageRelationship.cs
- WeakReference.cs
- Rule.cs
- XmlMemberMapping.cs
- UpdateTracker.cs
- GradientBrush.cs
- SystemDropShadowChrome.cs
- sitestring.cs
- ClientProxyGenerator.cs
- XamlStyleSerializer.cs
- SupportingTokenSpecification.cs
- SystemResourceKey.cs
- DataServiceRequestOfT.cs
- TokenBasedSet.cs
- RegexStringValidator.cs
- TextEditor.cs
- ImageDrawing.cs
- DataGridComponentEditor.cs
- GlobalProxySelection.cs
- DocumentGridContextMenu.cs
- XmlSchemaCompilationSettings.cs
- AccessDataSource.cs
- WebPartExportVerb.cs
- SetIndexBinder.cs
- ReferenceSchema.cs
- AttributeProviderAttribute.cs
- DnsEndPoint.cs
- DesignerVerb.cs
- AudioFormatConverter.cs
- TemplateControlBuildProvider.cs
- SizeAnimationBase.cs
- SamlDoNotCacheCondition.cs
- ScriptingJsonSerializationSection.cs
- SqlInfoMessageEvent.cs
- DependencyPropertyAttribute.cs
- RenderingBiasValidation.cs
- CFStream.cs
- UriTemplate.cs
- QuaternionIndependentAnimationStorage.cs
- SafeNativeMethodsMilCoreApi.cs
- DataBinder.cs
- AddingNewEventArgs.cs
- Int32CAMarshaler.cs
- MsmqTransportElement.cs
- BoolExpressionVisitors.cs
- TransactionProxy.cs
- SqlHelper.cs
- ComponentCache.cs
- PingReply.cs
- Evidence.cs
- arc.cs
- PrefixQName.cs
- ReadOnlyCollection.cs
- CodeSnippetStatement.cs
- ObjectListComponentEditor.cs
- NumericUpDown.cs
- SchemaSetCompiler.cs
- EventManager.cs
- MetabaseServerConfig.cs
- DataListItemEventArgs.cs
- StrokeCollectionDefaultValueFactory.cs
- InputScope.cs
- RegionData.cs
- ColorTransformHelper.cs
- SmtpFailedRecipientException.cs
- UrlMapping.cs
- PerspectiveCamera.cs
- JournalEntry.cs
- PanningMessageFilter.cs
- Blend.cs
- Separator.cs
- CharacterMetrics.cs