MonobjcMonobjc Documented Class Library
DataWithBytesNoCopyLength Method (bytes, length)
NamespacesMonobjc.FoundationNSDataDataWithBytesNoCopyLength(IntPtr, NSUInteger)

Creates and returns a data object that holds length bytes from the buffer bytes.

Original signature is '+ (id)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSData DataWithBytesNoCopyLength(
	IntPtr bytes,
	NSUInteger length
)
Public Shared Function DataWithBytesNoCopyLength ( _
	bytes As IntPtr, _
	length As NSUInteger _
) As NSData
public:
static NSData^ DataWithBytesNoCopyLength(
	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 that holds length bytes from the buffer bytes. Returns nil if the data object could not be created.
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)