MonobjcMonobjc Documented Class Library
DataWithLength Method (length)
NamespacesMonobjc.FoundationNSMutableDataDataWithLength(NSUInteger)

Creates and returns an NSMutableData object containing a given number of zeroed bytes.

Original signature is '+ (id)dataWithLength:(NSUInteger)length'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static Id DataWithLength(
	NSUInteger length
)
Public Shared Function DataWithLength ( _
	length As NSUInteger _
) As Id
public:
static Id^ DataWithLength(
	NSUInteger length
)
Parameters
length (NSUInteger)
The number of bytes the new data object initially contains.
Return Value
A new NSMutableData object of length bytes, filled with zeros.
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)