MonobjcMonobjc Documented Class Library
TruncateFileAtOffset Method (offset)
NamespacesMonobjc.FoundationNSFileHandleTruncateFileAtOffset(UInt64)

Truncates or extends the file represented by the receiver to a specified offset within the file and puts the file pointer at that position.

Original signature is '- (void)truncateFileAtOffset:(unsigned long long)offset'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void TruncateFileAtOffset(
	ulong offset
)
Public Overridable Sub TruncateFileAtOffset ( _
	offset As ULong _
)
public:
virtual void TruncateFileAtOffset(
	unsigned long long offset
)
Parameters
offset (UInt64)
The offset within the file that will mark the new end of the file.
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)