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
- Query.cs
- ScrollChangedEventArgs.cs
- MILUtilities.cs
- PlaceHolder.cs
- DBCommandBuilder.cs
- TabletDevice.cs
- SortDescription.cs
- XmlSequenceWriter.cs
- HMACSHA384.cs
- ArraySortHelper.cs
- CheckBox.cs
- AutoGeneratedField.cs
- FormsIdentity.cs
- GenericWebPart.cs
- XPathParser.cs
- CompatibleComparer.cs
- DataServiceContext.cs
- XmlNavigatorFilter.cs
- SelectionGlyph.cs
- BatchWriter.cs
- Compiler.cs
- StatusBarItemAutomationPeer.cs
- SessionStateContainer.cs
- MenuItemStyleCollection.cs
- ShaperBuffers.cs
- CodeMemberField.cs
- AsyncOperationManager.cs
- BooleanToVisibilityConverter.cs
- TextBoxRenderer.cs
- MethodImplAttribute.cs
- ServiceObjectContainer.cs
- Int32Converter.cs
- DataGridViewCellPaintingEventArgs.cs
- StorageAssociationTypeMapping.cs
- ThreadAbortException.cs
- LostFocusEventManager.cs
- WorkflowApplicationUnloadedException.cs
- Transform.cs
- ObjectHandle.cs
- _FixedSizeReader.cs
- EventLogRecord.cs
- SemanticResultValue.cs
- XmlAttributeCollection.cs
- ControlPropertyNameConverter.cs
- RemoteWebConfigurationHost.cs
- DeobfuscatingStream.cs
- ClientBuildManager.cs
- ReadOnlyPermissionSet.cs
- TraceSource.cs
- MissingSatelliteAssemblyException.cs
- ProxyManager.cs
- DataGridViewRowCancelEventArgs.cs
- httpapplicationstate.cs
- SystemFonts.cs
- MessageSecurityProtocolFactory.cs
- IPGlobalProperties.cs
- XsdDateTime.cs
- InternalSafeNativeMethods.cs
- RegexCaptureCollection.cs
- IUnknownConstantAttribute.cs
- CodePrimitiveExpression.cs
- QueryOutputWriter.cs
- LogArchiveSnapshot.cs
- PTConverter.cs
- WindowsSpinner.cs
- SizeAnimationBase.cs
- ThemeDictionaryExtension.cs
- SelectionGlyph.cs
- VSWCFServiceContractGenerator.cs
- Gdiplus.cs
- MsmqIntegrationChannelListener.cs
- EmptyElement.cs
- GenericsInstances.cs
- SqlVisitor.cs
- InputChannelBinder.cs
- SecurityPolicySection.cs
- EncoderFallback.cs
- ProviderUtil.cs
- FixedBufferAttribute.cs
- VisualTreeHelper.cs
- TableRow.cs
- InputReferenceExpression.cs
- CalendarTable.cs
- SerialPinChanges.cs
- EntityObject.cs
- translator.cs
- XmlHierarchyData.cs
- PersonalizationStateQuery.cs
- AbsoluteQuery.cs
- WmlListAdapter.cs
- GridViewUpdateEventArgs.cs
- MissingFieldException.cs
- SqlGenerator.cs
- GacUtil.cs
- GridViewUpdateEventArgs.cs
- RawTextInputReport.cs
- FrameworkPropertyMetadata.cs
- ErrorHandlerModule.cs
- SchemaAttDef.cs
- RequestTimeoutManager.cs