I have the following call for the function Read(void *lpBuf, UINT nCount)
and I was confused about the syntax it is being called in from another function, which tries to read a buffer of typeByte
Definition of function:
UINT CFileWave::Read(void *lpBuf, UINT nCount)
{
return m_File.Read(lpBuf, nCount);
}
Declaration of function within another function:
#define SIZE_PAGE 528l
RiffWav m_sWave;
CWav* pParent;
typedef unsigned char BYTE;
WavFile.Read((BYTE*)&(pParent->m_sWave), SIZE_PAGE);
RiffWav is a type-def header which contains info on a wav file and CWav is a class that preforms all the work to set the variables inside the Riff Wav header.
My question is what does (BYTE*)&(pParent->m_sWave)
pass into the function Read()
Aucun commentaire:
Enregistrer un commentaire