MonobjcMonobjc Documented Class Library
GetBufferLength Method (buffer, len)
NamespacesMonobjc.FoundationNSInputStreamGetBufferLength(IntPtr, NSInteger%)

Returns by reference a pointer to a read buffer and, by reference, the number of bytes available, and returns a Boolean value that indicates whether the buffer is available.

Original signature is '- (BOOL)getBuffer:(uint8_t **)buffer length:(NSUInteger *)len'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool GetBufferLength(
	IntPtr buffer,
	out NSInteger len
)
Public Overridable Function GetBufferLength ( _
	buffer As IntPtr, _
	<OutAttribute> ByRef len As NSInteger _
) As Boolean
public:
virtual bool GetBufferLength(
	IntPtr buffer, 
	[OutAttribute] NSInteger% len
)
Parameters
buffer (IntPtr)
Upon return, contains a pointer to a read buffer. The buffer is only valid until the next stream operation is performed.
len (NSInteger%)
Upon return, contains the number of bytes available.
Return Value
YES if the buffer is available, otherwise NO. Subclasses of NSInputStream may return NO if this operation is not appropriate for the stream type.
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)