Lines Matching refs:HiviewFileHeader
58 HiviewFileHeader *pHeader = &(fp->header); in InitHiviewFile()
61 pHeader->size = size + sizeof(HiviewFileHeader); in InitHiviewFile()
84 pHeader->rCursor = sizeof(HiviewFileHeader); in InitHiviewFile()
85 pHeader->wCursor = sizeof(HiviewFileHeader); in InitHiviewFile()
108 HiviewFileHeader tmpHeader = fp->header; in WriteFileHeader()
114 ret = HIVIEW_FileWrite(fp->fhandle, (uint8 *)&(tmpHeader), sizeof(HiviewFileHeader)); in WriteFileHeader()
115 if (ret == sizeof(HiviewFileHeader)) { in WriteFileHeader()
125 HiviewFileHeader h = { 0 }; in ReadFileHeader()
135 ret = HIVIEW_FileRead(fp->fhandle, (uint8 *)&h, sizeof(HiviewFileHeader)); in ReadFileHeader()
142 h.rCursor = sizeof(HiviewFileHeader); in ReadFileHeader()
143 if ((ret == sizeof(HiviewFileHeader)) && in ReadFileHeader()
145 (h.wCursor >= sizeof(HiviewFileHeader))) { in ReadFileHeader()
146 … (void)memcpy_s(&(fp->header), sizeof(HiviewFileHeader), (void *)&h, sizeof(HiviewFileHeader)); in ReadFileHeader()
159 HiviewFileHeader *h = &(fp->header); in WriteToFile()
183 HiviewFileHeader* h = &(fp->header); in ReadFromFile()