MonobjcMonobjc Documented Class Library
InitWithBytesNoCopyLengthFreeWhenDone Method (bytes, length, flag)
NamespacesMonobjc.FoundationNSDataInitWithBytesNoCopyLengthFreeWhenDone(IntPtr, NSUInteger, Boolean)

Initializes a newly allocated data object by adding to it length bytes of data from the buffer bytes.

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

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithBytesNoCopyLengthFreeWhenDone(
	IntPtr bytes,
	NSUInteger length,
	bool flag
)
Public Overridable Function InitWithBytesNoCopyLengthFreeWhenDone ( _
	bytes As IntPtr, _
	length As NSUInteger, _
	flag As Boolean _
) As Id
public:
virtual Id^ InitWithBytesNoCopyLengthFreeWhenDone(
	IntPtr bytes, 
	NSUInteger length, 
	bool flag
)
Parameters
bytes (IntPtr)
A buffer containing data for the new object. If flag is YES, 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.
flag (Boolean)
If YES, the returned object takes ownership of the bytes pointer and frees it on deallocation.
Return Value

[Missing <returns> documentation for "M:Monobjc.Foundation.NSData.InitWithBytesNoCopyLengthFreeWhenDone(System.IntPtr,Monobjc.Foundation.NSUInteger,System.Boolean)"]

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)