MonobjcMonobjc Documented Class Library
InitWithBytesNoCopyLength Method (bytes, length)
NamespacesMonobjc.FoundationNSDataInitWithBytesNoCopyLength(IntPtr, NSUInteger)

Returns a data object initialized by adding to it a given number of bytes of data from a given buffer.

Original signature is '- (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithBytesNoCopyLength(
	IntPtr bytes,
	NSUInteger length
)
Public Overridable Function InitWithBytesNoCopyLength ( _
	bytes As IntPtr, _
	length As NSUInteger _
) As Id
public:
virtual Id^ InitWithBytesNoCopyLength(
	IntPtr bytes, 
	NSUInteger length
)
Parameters
bytes (IntPtr)
A buffer containing data for the new object. bytes must point to a memory block allocated with malloc.
length (NSUInteger)
The number of bytes to hold from bytes. This value must not exceed the length of bytes.
Return Value
A data object initialized by adding to it length bytes of data from the buffer bytes. The returned object might be different than the original receiver.
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)