⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cluster.h

📁 fs_lib,arm9的fat文件系统
💻 H
字号:
/*
 * @(#)Cluster.h
 * @date 2005/12/25
 * @version 1.0
 * @author Zhou Shangpin.
 * Copyright 2005 Anyka corporation, Inc. All rights reserved.
 * ANYKA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

#ifndef		_CLUSTER_H_
#define		_CLUSTER_H_
#include "object.h"

struct	Cluster
{
	T_OBJECT	obj;
	T_U32	LastPtr;		//last block's address
	T_U32	MaxVcn;			//max virtual cluster
	T_U32	LastCluster;	//last physical cluster of file.
	T_U32	MinCluster;		//min of cluster link
	T_U32	MaxCluster;		//max of cluster link
	T_U32	BufLen;			//data buffer len.
	T_U8*	data;			//buffer. save cluster link.
};

typedef	struct	Cluster		T_CLUSTER;
typedef	struct	Cluster*	T_PCLUSTER;

T_VOID	Cluster_Destroy(T_PCLUSTER obj);
T_PCLUSTER Cluster_Initial(T_VOID);
T_BOOL Cluster_Add(T_PCLUSTER obj, T_U32 cluster, T_U32 count);
T_U32 Cluster_Find(T_PCLUSTER obj, T_U32 cluster);
T_U32 Cluster_Seek(T_PCLUSTER obj, T_U32 cnid);
T_BOOL Cluster_SortedDel(T_PCLUSTER obj, T_PCLUSTER sub);
T_BOOL Cluster_SortedAdd(T_PCLUSTER obj, T_U32 cluster, T_U32 count);
T_BOOL Cluster_SortedFind(T_PCLUSTER obj, T_U32 cluster);
T_BOOL Cluster_SortedCutBlock(T_PCLUSTER obj, T_U32 cluster, T_U32 len);
T_VOID Cluster_Clear(T_PCLUSTER obj);
T_VOID Cluster_Copy(T_PCLUSTER dst, T_PCLUSTER src);
T_U32 Cluster_GetSequence(T_PCLUSTER obj, T_U32 vcn);
T_U32 Cluster_GetCount(T_PCLUSTER obj, T_U32 vcn, T_U32 *RetCount);
T_BOOL Cluster_Check(T_PCLUSTER clus);
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -