Return the number of bytes available on the file system of descriptor.

Synopsis

Declared in <bdls_filesystemutil.h>

static
Offset
getAvailableSpace(FileDescriptor descriptor);

Description

Return the number of bytes available for allocation in the file system where the file with the specified descriptor resides, or a negative value if an error occurs.

Return Value

the number of available bytes, or a negative value on error

Parameters

Name

Description

descriptor

file descriptor whose volume's free space is returned

Created with MrDocs