Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

int kDbgHlpRead ( PKDBGHLPFILE  pFile,
void *  pv,
size_t  cb 

Reads a number of bytes at the current file position.

This will advance the current file position by cb bytes on success while on failure the position will be undefined.

The file size in bytes on success. On failure -1 is returned.
pFile The file handle.
pv Where to store the data.
cb How much to read.
off Where to read.

Definition at line 173 of file kDbgHlpCrt.cpp.

Referenced by kDbgHlpReadAt().

    if (fread(pv, cb, 1, pFile->pStrm) == 1)
        return 0;
    return -1;

Generated by  Doxygen 1.6.0   Back to index