library/src/filesystem/BP-Filesystem.cc
// Reads from a given file descriptor (wrapper)
Reads from a given file descriptor (wrapper)
Reads from a given file descriptor ( wrapper )
int BP_FDRead(int fd, char *buff, int size)
{
	if(!buff || !size)
		return 0;
	int readBytes = read(fd, buff, size);
	return readBytes;
}
int BP_FDRead ( int fd , char * buff , int size ) { if ( ! buff || ! size ) return 0 ; int readBytes = read ( fd , buff , size ) ; return readBytes ; }
Reads from a given file descriptor (wrapper)
Reads from a given file descriptor ( wrapper )
// ensure we have a buffer to read into, and a size // attempt to read specified bytes from the file descriptor // return the number of bytes read