file_descriptor::file_descriptor
Signature: file_descriptor::file_descriptor(int fd)
Attributes: undefined
Description: Constructor for the file descriptor class
Parameters:
file_descriptor::~file_descriptor
Signature: file_descriptor::~file_descriptor()
Attributes: undefined
Description: Destructor for the file descriptor class
file_descriptor::close
Signature: void file_descriptor::close()
Description: Closes a file
Return: void
file_descriptor::open
Signature: void file_descriptor::open(char* path)
Description: Opens a file
Parameters:
Return: void
file_descriptor::read
Signature: void file_descriptor::read(void* buffer, size_t size, size_t offset)
Description: Reads from a file
Parameters:
void* buffer
size_t size
size_t offset
Return: void
file_descriptor::write
Signature: void file_descriptor::write(void* buffer, size_t size, size_t offset)
Description: Writes to a file
Parameters:
void* buffer
size_t size
size_t offset
Return: void
file_descriptor::delete_
Signature: void file_descriptor::delete_()
Description: Deletes a file
Return: void
file_descriptor_manager::file_descriptor_manager
Signature: file_descriptor_manager::file_descriptor_manager() : fds(10)
Attributes: undefined
Description: Constructor for the file descriptor manager class
file_descriptor_manager::alloc_fd
Signature: int file_descriptor_manager::alloc_fd()
Description: Allocates a file descriptor
Return: int
file_descriptor_manager::free_fd
Signature: void file_descriptor_manager::free_fd(int fd)
Description: Frees a file descriptor
Parameters:
Return: void
file_descriptor_manager::register_fd
Signature: void file_descriptor_manager::register_fd(file_descriptor* fd_obj)
Description: Registers a file descriptor
Parameters:
Return: void
file_descriptor_manager::get_fd
Signature: file_descriptor* file_descriptor_manager::get_fd(int fd)
Description: Gets a file descriptor
Parameters:
Return: file_descriptor*
Show file on GitHub