MonobjcMonobjc Documented Class Library
ReplaceBytesInRangeWithBytesLength Method (range, replacementBytes, replacementLength)
NamespacesMonobjc.FoundationNSMutableDataReplaceBytesInRangeWithBytesLength(NSRange, IntPtr, NSUInteger)

Replaces with a given set of bytes a given range within the contents of the receiver.

Original signature is '- (void)replaceBytesInRange:(NSRange)range withBytes:(const void *)replacementBytes length:(NSUInteger)replacementLength'

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void ReplaceBytesInRangeWithBytesLength(
	NSRange range,
	IntPtr replacementBytes,
	NSUInteger replacementLength
)
Public Overridable Sub ReplaceBytesInRangeWithBytesLength ( _
	range As NSRange, _
	replacementBytes As IntPtr, _
	replacementLength As NSUInteger _
)
public:
virtual void ReplaceBytesInRangeWithBytesLength(
	NSRange range, 
	IntPtr replacementBytes, 
	NSUInteger replacementLength
)
Parameters
range (NSRange)
The range within the receiver's contents to replace with bytes. The range must not exceed the bounds of the receiver.
replacementBytes (IntPtr)
The data to insert into the receiver's contents.
replacementLength (NSUInteger)
The number of bytes to take from replacementBytes.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)