MonobjcMonobjc Documented Class Library
ReadMaxLength Method (buffer, len)
NamespacesMonobjc.FoundationNSInputStreamReadMaxLength(IntPtr, NSUInteger)

Reads up to a given number of bytes into a given buffer.

Original signature is '- (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)len'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger ReadMaxLength(
	IntPtr buffer,
	NSUInteger len
)
Public Overridable Function ReadMaxLength ( _
	buffer As IntPtr, _
	len As NSUInteger _
) As NSInteger
public:
virtual NSInteger ReadMaxLength(
	IntPtr buffer, 
	NSUInteger len
)
Parameters
buffer (IntPtr)
A data buffer. The buffer must be large enough to contain the number of bytes specified by len.
len (NSUInteger)
The maximum number of bytes to read.
Return Value
A number indicating the outcome of the operation:
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)