MonobjcMonobjc Documented Class Library
GetFileSystemRepresentationMaxLength Method (buffer, maxLength)
NamespacesMonobjc.FoundationNSStringGetFileSystemRepresentationMaxLength(IntPtr, NSUInteger)

Interprets the receiver as a system-independent path and fills a buffer with a C-string in a format and encoding suitable for use with file-system calls.

Original signature is '- (BOOL)getFileSystemRepresentation:(char *)buffer maxLength:(NSUInteger)maxLength'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool GetFileSystemRepresentationMaxLength(
	IntPtr buffer,
	NSUInteger maxLength
)
Public Overridable Function GetFileSystemRepresentationMaxLength ( _
	buffer As IntPtr, _
	maxLength As NSUInteger _
) As Boolean
public:
virtual bool GetFileSystemRepresentationMaxLength(
	IntPtr buffer, 
	NSUInteger maxLength
)
Parameters
buffer (IntPtr)
Upon return, contains a C-string that represent the receiver as as a system-independent path, plus the NULL termination byte. The size of buffer must be large enough to contain maxLength bytes.
maxLength (NSUInteger)
The maximum number of bytes in the string to return in buffer (including a terminating NULL character, which this method adds).
Return Value
YES if buffer is successfully filled with a file-system representation, otherwise NO (for example, if maxLength would be exceeded or if the receiver can’t be represented in the file system’s encoding).
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)