亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? filehdr.cc

?? linux的例子,就是下載后到自己的機子上去運行
?? CC
字號:
// filehdr.cc //	Routines for managing the disk file header (in UNIX, this//	would be called the i-node).////	The file header is used to locate where on disk the //	file's data is stored.  We implement this as a fixed size//	table of pointers -- each entry in the table points to the //	disk sector containing that portion of the file data//	(in other words, there are no indirect or doubly indirect //	blocks). The table size is chosen so that the file header//	will be just big enough to fit in one disk sector, ////      Unlike in a real system, we do not keep track of file permissions, //	ownership, last modification date, etc., in the file header. ////	A file header can be initialized in two ways://	   for a new file, by modifying the in-memory data structure//	     to point to the newly allocated data blocks//	   for a file already on disk, by reading the file header from disk//// Copyright (c) 1992-1993 The Regents of the University of California.// All rights reserved.  See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions.#include "copyright.h"#include "system.h"#include "filehdr.h"//----------------------------------------------------------------------// FileHeader::Allocate// 	Initialize a fresh file header for a newly created file.//	Allocate data blocks for the file out of the map of free disk blocks.//	Return FALSE if there are not enough free blocks to accomodate//	the new file.////	"freeMap" is the bit map of free disk sectors//	"fileSize" is the bit map of free disk sectors//----------------------------------------------------------------------boolFileHeader::Allocate(BitMap *freeMap, int fileSize){     numBytes = fileSize;    numSectors  = divRoundUp(fileSize, SectorSize);    if (freeMap->NumClear() < numSectors)	return FALSE;		// not enough space    for (int i = 0; i < numSectors; i++)	dataSectors[i] = freeMap->Find();    return TRUE;}//----------------------------------------------------------------------// FileHeader::Deallocate// 	De-allocate all the space allocated for data blocks for this file.////	"freeMap" is the bit map of free disk sectors//----------------------------------------------------------------------void FileHeader::Deallocate(BitMap *freeMap){    for (int i = 0; i < numSectors; i++) {	ASSERT(freeMap->Test((int) dataSectors[i]));  // ought to be marked!	freeMap->Clear((int) dataSectors[i]);    }}//----------------------------------------------------------------------// FileHeader::FetchFrom// 	Fetch contents of file header from disk. ////	"sector" is the disk sector containing the file header//----------------------------------------------------------------------voidFileHeader::FetchFrom(int sector){    synchDisk->ReadSector(sector, (char *)this);}//----------------------------------------------------------------------// FileHeader::WriteBack// 	Write the modified contents of the file header back to disk. ////	"sector" is the disk sector to contain the file header//----------------------------------------------------------------------voidFileHeader::WriteBack(int sector){    synchDisk->WriteSector(sector, (char *)this); }//----------------------------------------------------------------------// FileHeader::ByteToSector// 	Return which disk sector is storing a particular byte within the file.//      This is essentially a translation from a virtual address (the//	offset in the file) to a physical address (the sector where the//	data at the offset is stored).////	"offset" is the location within the file of the byte in question//----------------------------------------------------------------------intFileHeader::ByteToSector(int offset){    return(dataSectors[offset / SectorSize]);}//----------------------------------------------------------------------// FileHeader::FileLength// 	Return the number of bytes in the file.//----------------------------------------------------------------------intFileHeader::FileLength(){    return numBytes;}//----------------------------------------------------------------------// FileHeader::Print// 	Print the contents of the file header, and the contents of all//	the data blocks pointed to by the file header.//----------------------------------------------------------------------voidFileHeader::Print(){    int i, j, k;    char *data = new char[SectorSize];    printf("FileHeader contents.  File size: %d.  File blocks:\n", numBytes);    for (i = 0; i < numSectors; i++)	printf("%d ", dataSectors[i]);    printf("\nFile contents:\n");    for (i = k = 0; i < numSectors; i++) {	synchDisk->ReadSector(dataSectors[i], data);        for (j = 0; (j < SectorSize) && (k < numBytes); j++, k++) {	    if ('\040' <= data[j] && data[j] <= '\176')   // isprint(data[j])		printf("%c", data[j]);            else		printf("\\%x", (unsigned char)data[j]);	}        printf("\n");     }    delete [] data;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产日产图区| 亚洲成人激情社区| 美女看a上一区| 国产福利91精品一区| 91蝌蚪国产九色| 欧美老年两性高潮| 中文字幕一区在线| 麻豆91精品视频| 色婷婷av一区二区三区大白胸| 欧美在线综合视频| 一本一道波多野结衣一区二区| jlzzjlzz欧美大全| 欧美日本在线一区| 成人高清视频免费观看| 国产精品欧美精品| av在线综合网| 中文字幕一区二区三| 美国av一区二区| 成人免费电影视频| 久久这里只精品最新地址| 婷婷中文字幕综合| 色婷婷av一区二区三区gif| 欧美韩国日本综合| 国产精品一区二区三区网站| 不卡电影一区二区三区| 国产乱子轮精品视频| 日韩视频在线你懂得| 亚洲成人午夜影院| 亚洲精品在线三区| 91亚洲大成网污www| 日韩免费看网站| 亚洲蜜臀av乱码久久精品蜜桃| 精品亚洲成a人| 欧美日韩免费在线视频| 亚洲精品成人a在线观看| 波多野结衣中文字幕一区| 国产日产亚洲精品系列| 成人精品视频一区二区三区| 成人h动漫精品一区二区| 久久蜜桃一区二区| 99re在线视频这里只有精品| 国产视频视频一区| 91香蕉视频污| 亚洲一二三四在线| 欧美一级高清片| 国产一区在线观看麻豆| 亚洲欧洲日韩在线| 欧美色电影在线| 久久99在线观看| 中文字幕的久久| 色94色欧美sute亚洲线路二 | 久久久久久**毛片大全| 成人毛片在线观看| 五月开心婷婷久久| 国产清纯在线一区二区www| 成人91在线观看| 亚洲成人av在线电影| 久久久不卡网国产精品一区| 99re亚洲国产精品| 久久精品久久久精品美女| 中文字幕不卡一区| 91精品国产色综合久久ai换脸 | 国产精品一区二区在线看| 亚洲男同性恋视频| 久久精品视频一区| 欧美一区二区视频观看视频| 91美女福利视频| 国产一区视频网站| 日韩1区2区日韩1区2区| 成人欧美一区二区三区视频网页| 日韩一区二区电影网| 91在线视频播放| 国产精品18久久久久久久网站| 亚洲女同女同女同女同女同69| 久久奇米777| 欧美一区二区三区公司| 在线亚洲+欧美+日本专区| 成人精品视频.| 国产乱子轮精品视频| 久草在线在线精品观看| 日韩 欧美一区二区三区| 一个色在线综合| 亚洲丝袜制服诱惑| 国产欧美va欧美不卡在线| 国产亚洲精品免费| 国产嫩草影院久久久久| 国产女主播一区| 久久噜噜亚洲综合| 国产精品污www在线观看| 日本一区二区不卡视频| 国产精品免费丝袜| 一区免费观看视频| 亚洲精品美国一| 夜夜操天天操亚洲| 天天综合网天天综合色| 午夜欧美电影在线观看| 日韩主播视频在线| 日韩av一区二| 国产乱码精品一区二区三区av| 成人影视亚洲图片在线| 成人午夜看片网址| 91九色02白丝porn| 欧美一区二区三区视频免费| 久久久亚洲高清| 亚洲激情网站免费观看| 91精品在线免费观看| 一本在线高清不卡dvd| 99久久精品免费看国产| 4hu四虎永久在线影院成人| 精品国产乱码久久| 亚洲男人天堂一区| 捆绑紧缚一区二区三区视频| 成人污污视频在线观看| 在线精品观看国产| 日韩欧美色综合网站| 国产精品理伦片| 日韩中文欧美在线| 高清不卡一区二区在线| 欧美日韩电影一区| 欧美国产一区二区| 婷婷一区二区三区| 99re这里只有精品6| 日韩精品一区二区在线| 天天免费综合色| 丁香天五香天堂综合| 91精品国产色综合久久不卡蜜臀| 国产精品高清亚洲| 国产高清亚洲一区| 日韩一区二区免费视频| 亚洲一级二级在线| 日韩一区二区在线看| 综合亚洲深深色噜噜狠狠网站| 激情久久久久久久久久久久久久久久| 日本高清成人免费播放| 亚洲日本在线天堂| 9人人澡人人爽人人精品| 欧美激情一区三区| 国产精品主播直播| 久久蜜桃香蕉精品一区二区三区| 久久精品国产免费看久久精品| 91精品国产综合久久久久久漫画| 亚洲乱码中文字幕综合| 91丨九色porny丨蝌蚪| 国产精品二三区| 色偷偷久久一区二区三区| 亚洲日本乱码在线观看| 欧美色综合网站| 日韩高清一级片| 91精品国产色综合久久不卡电影 | 激情深爱一区二区| 精品成人免费观看| 国产 日韩 欧美大片| 中文字幕一区视频| 91福利在线观看| 午夜视频在线观看一区二区三区| 91精品欧美久久久久久动漫| 免费观看一级欧美片| 国产欧美日韩不卡| 色一情一伦一子一伦一区| 亚洲444eee在线观看| 精品久久久久久最新网址| 91精品国产91久久综合桃花 | 国产亚洲精久久久久久| 丁香婷婷综合色啪| 五月婷婷激情综合网| 久久综合视频网| 色欧美片视频在线观看在线视频| 亚洲成精国产精品女| 精品1区2区在线观看| 在线看一区二区| 国产黄色精品视频| 午夜亚洲国产au精品一区二区 | 亚洲国产美女搞黄色| 久久午夜羞羞影院免费观看| 91在线免费看| 懂色av一区二区三区免费看| 欧美日韩亚洲综合一区二区三区| 亚洲一区二区三区视频在线播放| 欧美性色黄大片| 奇米影视一区二区三区小说| 久久久久99精品国产片| 福利一区在线观看| 午夜精品久久久久久久久久久| 91精品国产综合久久久蜜臀粉嫩 | 中文欧美字幕免费| 欧美成人三级电影在线| 欧美影视一区在线| 不卡的av电影在线观看| 国模冰冰炮一区二区| 美美哒免费高清在线观看视频一区二区| 亚洲日本韩国一区| 18成人在线观看| 国产精品福利影院| 中文字幕第一区综合| 国产亚洲欧美一级| 26uuu欧美| 日本伊人午夜精品| 一区二区三区视频在线观看| 中文字幕在线一区免费| 久久精品免费在线观看|