X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/7b78a5a287827db9e9b16286f3604aef69b37c5c..289f6a146c0b2087607d8d8659531ea90142779a:/fatfs/doc/ja/lseek.html diff --git a/fatfs/doc/ja/lseek.html b/fatfs/doc/ja/lseek.html deleted file mode 100644 index 88e1ab2..0000000 --- a/fatfs/doc/ja/lseek.html +++ /dev/null @@ -1,129 +0,0 @@ - - -
- - - - - -ãã¡ã¤ã«ã®ãªã¼ã/ã©ã¤ã ãã¤ã³ã¿ã移åãã¾ããã¾ããé«éã·ã¼ã¯æ©è½ä½¿ç¨æã«ã¯CLMT(å¾è¿°)ã®ä½æã«ã使ç¨ãã¾ãã
--FRESULT f_lseek ( - FIL* fp, /* [IN] ãã¡ã¤ã« ãªãã¸ã§ã¯ãæ§é ä½ã¸ã®ãã¤ã³ã¿ */ - DWORD ofs /* [IN] 移åå ãªãã»ãã */ -); --
-FR_OK, -FR_DISK_ERR, -FR_INT_ERR, -FR_NOT_READY, -FR_INVALID_OBJECT, -FR_TIMEOUT, -FR_NOT_ENOUGH_CORE -
-ãã¡ã¤ã«ã®ãªã¼ã/ã©ã¤ã ãã¤ã³ã¿(次ã«èªã¿åºãã»æ¸ãè¾¼ã¿ããããã¤ãã®ãªãã»ãã)ã移åãã¾ãããªãã»ããã®åç¹ã¯ãã¡ã¤ã«å é ã§ããæ¸ãè¾¼ã¿ã¢ã¼ãã§ãã¡ã¤ã« ãµã¤ãºãã大ããªå¤ãæå®ããã¨ãããã¾ã§ãã¡ã¤ã« ãµã¤ãºãæ¡å¼µãããæ¡å¼µãããé¨åã®ãã¼ã¿ã¯æªå®ç¾©ã¨ãªãã¾ãããã¼ã¿ãé 延ç¡ãé«éã«æ¸ãè¾¼ã¿ããã¨ãã¯ãäºããã®é¢æ°ã§å¿ è¦ãªãµã¤ãºã¾ã§ãã¡ã¤ã« ãµã¤ãºãæ¡å¼µãã¦ããã¨è¯ãã§ããããf_lseek()ãæ£å¸¸çµäºãããã¨ã¯ããªã¼ã/ã©ã¤ã ãã¤ã³ã¿ãæ£ãã移åããããã§ãã¯ããã¹ãã§ãããªã¼ã/ã©ã¤ã ãã¤ã³ã¿ãæå®ããå°ããã¨ãã¯ã次ã®åå ãèãããã¾ãã
-_USE_FASTSEEKã1ã§ãä¸ã¤ãã¡ã¤ã« ãªãã¸ã§ã¯ãã®cltblã¡ã³ããNULL以å¤(f_open()ã§NULLã«è¨å®ããã)ã®ã¨ããé«éã·ã¼ã¯ ã¢ã¼ãã«ãªãã¾ããããã¯ãã¡ã¤ã«ã®ã¯ã©ã¹ã¿é ç½®æ å ±(CLMT)ãã¡ã¢ãªä¸ã«ä¿æãã¦ãããã¨ã«ãããFATã«ã¢ã¯ã»ã¹ãããã¨ãªãå¾æ¹ã·ã¼ã¯ããã³ã° ã·ã¼ã¯ãé«éã«è¡ãæ©è½ã§ããé«éã·ã¼ã¯ ã¢ã¼ãã¯ãf_read()/f_wtite()ã®åä½ã«ãé©ç¨ããã¾ããé«éã·ã¼ã¯ ã¢ã¼ãã§ã¯f_wtite()/f_lseek()ã«ãããã¡ã¤ã« ãµã¤ãºã®æ¡å¼µã¯ã§ãã¾ããã
-é«éã·ã¼ã¯åä½ãè¡ãåã«ãCLMTãä½æãã¦ããå¿ è¦ãããã¾ãããããä½æããã«ã¯ãã¾ãCLMTæ ¼ç´ãããã¡(DWORDåé å)ãæºåããcltblã¡ã³ãã«ãã®ãã¤ã³ã¿ãã»ãããã¾ããããã¦ãé åã®å é è¦ç´ ã«ãã®é åã®ãµã¤ãº(è¦ç´ æ°)ãå ¥ããf_lseek()ãofsã«CREATE_LINKMAPãæå®ãã¦å¼ã³åºãã¾ããé¢æ°ãæåããã¨CLMTãä½æããã以éã®f_read()/f_write()/f_lseek()ã§ã¯FATã¸ã®ã¢ã¯ã»ã¹ã¯çºçãã¾ãããFR_NOT_ENOUGH_COREã§å¤±æããã¨ãã¯é åãµã¤ãºãä¸è¶³ã§ãå é è¦ç´ ã«ã¯å®éã«å¿ è¦ã¨ãªãè¦ç´ æ°ãè¿ããã¾ããå¿ è¦ãªè¦ç´ æ°ã¯ã(ãã¡ã¤ã«ã®åå²æ° + 1) * 2 ã§ãããã¨ãã°ããã¡ã¤ã«ã5ã¤ã®ãã©ã°ã¡ã³ãã«åæããã¦ããã¨ãã«å¿ è¦ãªè¦ç´ æ°ã¯ã12ã¨ãªãã¾ãã
-_FS_MINIMIZE < 3ã®ã¨ã使ç¨å¯è½ã§ãã
-- /* ãã¡ã¤ã«ãéã */ - fp = malloc(sizeof (FIL)); - res = f_open(fp, "file.dat", FA_READ|FA_WRITE); - if (res) ... - - /* ãã¡ã¤ã« ãªãã»ãã5000ã¸ç§»å */ - res = f_lseek(fp, 5000); - - /* ãã¡ã¤ã«çµç«¯ã¸ç§»å(ãã¡ã¤ã«è¿½è¨ã®æºå) */ - res = f_lseek(fp, f_size(fp)); - - /* 3000ãã¤ãé²ãã */ - res = f_lseek(fp, f_tell(fp) + 3000); - - /* 2000ãã¤ãæ»ã (ã©ããã¢ã©ã¦ã³ãã«æ³¨æ) */ - res = f_lseek(fp, f_tell(fp) - 2000); --
-/* ã¯ã©ã¹ã¿å è¡å²ãå½ã¦ (ã¹ããªã¼ãã³ã° ã©ã¤ãæã®ãããã¡ ãªã¼ãã¼ã©ã³é²æ¢) */ - - res = f_open(fp, "record.wav", FA_CREATE_NEW | FA_WRITE); /* ãã¡ã¤ã«ä½æ */ - - res = f_lseek(fp, MAX_SIZE); /* ååãªã¯ã©ã¹ã¿ã®å è¡å²ãå½ã¦ */ - if (res || f_tell(fp) != PRE_SIZE) ... /* æ£ãããã¡ã¤ã«ãæ¡å¼µãããããã§ã㯠*/ - - res = f_lseek(fp, DATA_START); /* ãã¼ã¿ ã¹ããªã¼ã ã®è¨é²(ã¢ãã±ã¼ã·ã§ã³ãã£ã¬ã¤ç¡ã) */ - ... - - res = f_truncate(fp); /* ä¸è¦é åã®åãæ¨ã¦ */ - res = f_lseek(fp, 0); /* ãããã®è¨é² */ - ... - - res = f_close(fp); --
-/* é«éã·ã¼ã¯æ©è½ã使ã */ - - DWORD clmt[SZ_TBL]; /* ãªã³ã¯ ããã ãã¼ãã«æ ¼ç´ãããã¡ */ - - res = f_lseek(fp, ofs1); /* é常ã·ã¼ã¯ (ãªã¼ãã³æãcltblã¯NULLã«åæåããã) */ - - fp->cltbl = clmt; /* é«éã·ã¼ã¯æ©è½ã®æå¹å */ - clmt[0] = SZ_TBL; /* å é è¦ç´ ã«é åè¦ç´ æ°ãã»ãã */ - res = f_lseek(fp, CREATE_LINKMAP); /* CLMTã®ä½æ */ - ... - - res = f_lseek(fp, ofs2); /* 以éãf_read/f_write/f_lseekã§FATã¢ã¯ã»ã¹ã¯çºçããªã */ --