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
- HelpKeywordAttribute.cs
- XPathBuilder.cs
- Point3DAnimationUsingKeyFrames.cs
- XsdBuilder.cs
- DateTimeValueSerializer.cs
- DataSetFieldSchema.cs
- FileEnumerator.cs
- ConsoleTraceListener.cs
- WindowsBrush.cs
- OleDbRowUpdatedEvent.cs
- LayoutTable.cs
- Pen.cs
- EntityParameter.cs
- SchemaTableOptionalColumn.cs
- CodeDesigner.cs
- ListChangedEventArgs.cs
- JournalEntryStack.cs
- SQLDecimalStorage.cs
- RemoteWebConfigurationHost.cs
- ListenerElementsCollection.cs
- CompoundFileReference.cs
- CompositeActivityCodeGenerator.cs
- AncestorChangedEventArgs.cs
- StringValidatorAttribute.cs
- PropertyToken.cs
- FileUtil.cs
- ConstraintConverter.cs
- columnmapkeybuilder.cs
- InlinedAggregationOperatorEnumerator.cs
- _ConnectStream.cs
- InteropAutomationProvider.cs
- CaseStatement.cs
- ConstraintStruct.cs
- SessionPageStatePersister.cs
- ItemCheckEvent.cs
- HebrewNumber.cs
- XmlSignificantWhitespace.cs
- Style.cs
- FileDialogPermission.cs
- ScriptRegistrationManager.cs
- WorkflowTransactionService.cs
- DocumentSequenceHighlightLayer.cs
- BulletDecorator.cs
- FormattedText.cs
- XmlAutoDetectWriter.cs
- HandleRef.cs
- InstanceLockLostException.cs
- WindowsStreamSecurityElement.cs
- SpellerError.cs
- CheckBoxRenderer.cs
- GridItem.cs
- ReachPageContentSerializer.cs
- SqlComparer.cs
- NativeMethods.cs
- _Semaphore.cs
- DataGridViewCellMouseEventArgs.cs
- ReceiveContextCollection.cs
- MetadataPropertyvalue.cs
- _CacheStreams.cs
- RequestStatusBarUpdateEventArgs.cs
- CacheManager.cs
- SimpleBitVector32.cs
- ContextDataSource.cs
- DataSourceHelper.cs
- LayoutTableCell.cs
- MouseDevice.cs
- VBIdentifierName.cs
- RegexCharClass.cs
- CodeTypeDelegate.cs
- UIPropertyMetadata.cs
- ObjectItemAttributeAssemblyLoader.cs
- Transform3D.cs
- TemplatePagerField.cs
- BidOverLoads.cs
- AnimationException.cs
- RoleManagerSection.cs
- ToolStripSplitStackLayout.cs
- embossbitmapeffect.cs
- ReadingWritingEntityEventArgs.cs
- ReadWriteSpinLock.cs
- BindingManagerDataErrorEventArgs.cs
- Latin1Encoding.cs
- TypeValidationEventArgs.cs
- SqlStream.cs
- AdPostCacheSubstitution.cs
- DefaultParameterValueAttribute.cs
- DataControlFieldHeaderCell.cs
- HtmlImage.cs
- FederatedMessageSecurityOverHttp.cs
- RelatedView.cs
- DocumentGrid.cs
- TraceSource.cs
- ConfigXmlAttribute.cs
- Win32Exception.cs
- PasswordTextContainer.cs
- EntityFrameworkVersions.cs
- DataControlLinkButton.cs
- RelationshipConstraintValidator.cs
- XmlAttributeProperties.cs
- MetadataFile.cs