Home | History | Annotate | Download | only in lib

Lines Matching defs:file

5  * you may not use this file except in compliance with the License.
17 * @file picorsrc.c
67 picoos_File file;
105 this->file = NULL;
284 PICODBG_DEBUG(("analysing file name %s",fileName));
296 picoos_FileHeader header, picoos_uint32 * headerlen, picoos_File file)
305 status = picoos_readPicoHeader(file, headerlen);
309 return picoos_emRaiseException(this->common->em,status,NULL,(picoos_char *)"problem reading file header");
312 status = picoos_read_pi_uint16(file,&hdrlen1);
320 if (picoos_ReadBytes(file, (picoos_uint8 *) this->tmpHeader, &n) && hdrlen1 == n) {
533 /* load resource file. the type of resource file etc. are in the header,
562 /* ***************** parse file name for file type and parameters */
571 /* open binary file for reading (no key, nrOfBufs, bufSize) */
572 PICODBG_DEBUG(("trying to open file %s",fileName));
573 if (!picoos_OpenBinary(this->common, &res->file, fileName)) {
576 PICODBG_ERROR(("can't open file %s",fileName));
581 status = readHeader(this, &header, &headerlen, res->file);
582 /* res->file now positioned at first pos after header */
595 status = picoos_read_pi_uint32(res->file, &len);
613 /* read file contents into memory */
614 status = (picoos_ReadBytes(res->file, res->start, &len)) ? PICO_OK
688 /* unload resource file. (if resource file is busy, warn and don't unload) */
703 if (rsrc->file != NULL) {
704 picoos_CloseBinary(this->common, &rsrc->file);