Lines Matching refs:buffer
114 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_DETAIL, "PutBackChar '%c'\n", pData->buffer[pData->index]); */ }
143 static EAS_RESULT IMY_ReadLine (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE fileHandle, EAS_I8 *buffer, EAS_I32 *pStartLine);
144 static EAS_INT IMY_ParseLine (EAS_I8 *buffer, EAS_U8 *pIndex);
191 EAS_I8 buffer[MAX_LINE_SIZE+1];
200 if (IMY_ReadLine(pEASData->hwInstData, fileHandle, buffer, NULL) != EAS_SUCCESS)
204 if (IMY_ParseLine(buffer, &index) == TOKEN_BEGIN)
436 IMY_ReadLine(pEASData->hwInstData, pData->fileHandle, pData->buffer, &pData->startLine);
1352 c = pData->buffer[pData->index++];
1392 static void IMY_MetaData (S_IMELODY_DATA *pData, E_EAS_METADATA_TYPE metaType, EAS_I8 *buffer)
1400 /* copy data to host buffer */
1401 len = (EAS_I32) strlen((char*) buffer);
1404 strncpy((char*) pData->metadata.buffer, (char*) buffer, (size_t) len);
1405 pData->metadata.buffer[len] = 0;
1408 pData->metadata.callback(metaType, pData->metadata.buffer, pData->metadata.pUserData);
1461 if ((result = IMY_ReadLine(pEASData->hwInstData, pData->fileHandle, pData->buffer, &pData->startLine)) != EAS_SUCCESS)
1469 token = IMY_ParseLine(pData->buffer, &pData->index);
1480 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Invalid FORMAT field '%s'\n", pData->buffer); */ }
1493 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Invalid VERSION field '%s'\n", pData->buffer); */ }
1504 IMY_MetaData(pData, EAS_METADATA_TITLE, pData->buffer + pData->index);
1508 IMY_MetaData(pData, EAS_METADATA_AUTHOR, pData->buffer + pData->index);
1528 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Error in style command: %s\n", pData->buffer); */ }
1540 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Error in volume command: %s\n", pData->buffer); */ }
1560 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Ignoring unrecognized token in iMelody file: %s\n", pData->buffer); */ }
1590 c = pData->buffer[pData->index++];
1592 /* buffer empty, read more */
1600 pData->buffer[0] = 0;
1601 if (IMY_ReadLine(hwInstData, pData->fileHandle, pData->buffer, &pData->startLine) != EAS_SUCCESS)
1610 if (IMY_ParseLine(pData->buffer, &index) == TOKEN_END)
1615 pData->buffer[0] = 0;
1649 static EAS_RESULT IMY_ReadLine (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE fileHandle, EAS_I8 *buffer, EAS_I32 *pStartLine)
1667 buffer[0] = 0;
1681 /* store characters in buffer */
1683 buffer[i++] = c;
1685 buffer[i] = 0;
1688 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_DETAIL, "IMY_ReadLine read %s\n", buffer); */ }
1710 static EAS_INT IMY_ParseLine (EAS_I8 *buffer, EAS_U8 *pIndex)
1729 if (tokens[i][j] != ToUpper(buffer[j]))