library/src/blockclass/BP-BlockClass.cc
// Reads from a given file descriptor
Reads from a given file descriptor
Reads from a given file descriptor
int Block::FD_Read(int fd, char *buff, int size)
{
	if(!buff || !size)
		return ERR_FAILURE;
	int bytesRead = BP_FDRead(fd, buff, size);
	return bytesRead;
}
int Block :: FD_Read ( int fd , char * buff , int size ) { if ( ! buff || ! size ) return ERR_FAILURE ; int bytesRead = BP_FDRead ( fd , buff , size ) ; return bytesRead ; }
Reads from a given file descriptor
Reads from a given file descriptor
// ensure we have a buffer and size parameter // attempt to read from the fd // return the number of bytes read