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
- AncestorChangedEventArgs.cs
- _RequestCacheProtocol.cs
- FlowLayoutPanelDesigner.cs
- DelegatedStream.cs
- HScrollBar.cs
- ToolStripSplitStackLayout.cs
- MenuItem.cs
- CapabilitiesSection.cs
- UrlAuthorizationModule.cs
- EventHandlerService.cs
- SurrogateEncoder.cs
- ColumnWidthChangingEvent.cs
- AppDomainProtocolHandler.cs
- XsdDuration.cs
- DateBoldEvent.cs
- RoleManagerSection.cs
- RequestCacheManager.cs
- SolidColorBrush.cs
- PenThreadWorker.cs
- SchemaMerger.cs
- ActiveDocumentEvent.cs
- Enlistment.cs
- SubqueryRules.cs
- SizeConverter.cs
- CollectionChange.cs
- CaseDesigner.xaml.cs
- PrintDocument.cs
- GeneralTransform.cs
- MenuAutoFormat.cs
- NativeCompoundFileAPIs.cs
- Attributes.cs
- EdmTypeAttribute.cs
- ExpressionNormalizer.cs
- JulianCalendar.cs
- TypeDescriptorContext.cs
- StreamingContext.cs
- QuaternionRotation3D.cs
- PageThemeCodeDomTreeGenerator.cs
- MemoryRecordBuffer.cs
- ContentValidator.cs
- TextBoxAutoCompleteSourceConverter.cs
- DrawingVisual.cs
- FaultException.cs
- ArraySortHelper.cs
- NativeMethods.cs
- BinaryMessageEncodingElement.cs
- Operand.cs
- PageThemeCodeDomTreeGenerator.cs
- OpCellTreeNode.cs
- DotAtomReader.cs
- Models.cs
- DecimalAnimation.cs
- OperationSelectorBehavior.cs
- OperatorExpressions.cs
- MenuItemStyleCollection.cs
- SequentialActivityDesigner.cs
- FlowDocumentView.cs
- TargetException.cs
- BindingBase.cs
- Environment.cs
- Vector3DAnimation.cs
- BuilderPropertyEntry.cs
- ResourcesBuildProvider.cs
- LocationSectionRecord.cs
- XmlReader.cs
- WindowsGraphicsWrapper.cs
- SimpleApplicationHost.cs
- RSAPKCS1SignatureDeformatter.cs
- PingOptions.cs
- NTAccount.cs
- ConfigXmlWhitespace.cs
- ExpressionEvaluator.cs
- DynamicValidatorEventArgs.cs
- ObjectManager.cs
- SubMenuStyleCollection.cs
- OwnerDrawPropertyBag.cs
- EdmScalarPropertyAttribute.cs
- Int64KeyFrameCollection.cs
- SemanticTag.cs
- SafeSystemMetrics.cs
- WorkflowQueue.cs
- DesignTimeTemplateParser.cs
- FirstQueryOperator.cs
- TextRangeSerialization.cs
- TimeSpanStorage.cs
- TypeSystemProvider.cs
- DescendantQuery.cs
- XamlSerializerUtil.cs
- ImageAnimator.cs
- LocatorBase.cs
- ListenerElementsCollection.cs
- SimpleHandlerFactory.cs
- WhiteSpaceTrimStringConverter.cs
- StorageScalarPropertyMapping.cs
- ReadOnlyObservableCollection.cs
- RootBuilder.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- RegionData.cs
- ListItemViewAttribute.cs
- ToolStripSystemRenderer.cs