MonobjcMonobjc Documented Class Library
WriteMaxLength Method (buffer, length)
NamespacesMonobjc.FoundationNSOutputStreamWriteMaxLength(IntPtr, NSUInteger)

Writes the contents of a provided data buffer to the receiver.

Original signature is '- (NSInteger)write:(const uint8_t *)buffer maxLength:(NSUInteger)length'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger WriteMaxLength(
	IntPtr buffer,
	NSUInteger length
)
Public Overridable Function WriteMaxLength ( _
	buffer As IntPtr, _
	length As NSUInteger _
) As NSInteger
public:
virtual NSInteger WriteMaxLength(
	IntPtr buffer, 
	NSUInteger length
)
Parameters
buffer (IntPtr)
The data to write.
length (NSUInteger)
The length of the data buffer, in bytes.
Return Value
The number of bytes actually written, or -1 if an error occurs. More information about the error can be obtained with streamError. If the receiver is a fixed-length stream and has reached its capacity, 0 is returned.
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)