2018年2月24日星期六

gugustock_v0_201802102227_4d_29_ZFTEXTTO1PBYTE_VERSION_GETFILESIZE

///////
//ZFTEXTTO1PBYTE_VERSION_GETFILESIZE function
//
//text to 1pbyte : get file size
///////
//ZFTEXTTO1PBYTE_VERSION_GETFILESIZE 函数
//
//文本 到 1pbyte : 得到 文件 大小



DWORD ZFTEXTTO1PBYTE_VERSION_GETFILESIZE (
PBYTE & z_textto1pbyteversiongetfilesize_pathfilenameextension_input_pbyte ,
DWORD & z_textto1pbyteversiongetfilesize_getfilesize_output_dword ,
PBYTE & z_textto1pbyteversiongetfilesize_1pbyte_output_pbyte
)
///////
//ZFTEXTTO1PBYTE_VERSION_GETFILESIZE function
//
//text to 1pbyte : get file size
///////
//ZFTEXTTO1PBYTE_VERSION_GETFILESIZE 函数
//
//文本 到 1pbyte : 得到 文件 大小
{

ZFGETFILESIZE (
z_textto1pbyteversiongetfilesize_pathfilenameextension_input_pbyte ,
//input :
//path + file name + extension
//路径 + 文件名 + 扩展名
z_textto1pbyteversiongetfilesize_getfilesize_output_dword
//output :
//byte : count : read file
//字节 : 计数 : 读 文件
) ;
//get file size
//得到 文件 大小

ZFINITIALPOINTER (
z_textto1pbyteversiongetfilesize_1pbyte_output_pbyte ,
//input output :
//pointer
//指针
z_textto1pbyteversiongetfilesize_getfilesize_output_dword
//input :
//byte : count
//字节 : 计数
) ;
//initial pointer
//初始化 指针

z_textto1pbyteversiongetfilesize_nbyte_readfromfile_version_infor_functionprocess_dword = 0x01 ;

z_textto1pbyteversiongetfilesize_forloopcount_functionprocess_dword = 0 ;

for (
;
z_textto1pbyteversiongetfilesize_forloopcount_functionprocess_dword < z_textto1pbyteversiongetfilesize_getfilesize_output_dword
;
)
//
{

ZFREADFILENBYTE (
z_textto1pbyteversiongetfilesize_pathfilenameextension_input_pbyte ,
//input :
//path + file name + extension
//路径 + 文件名 + 扩展名
z_textto1pbyteversiongetfilesize_forloopcount_functionprocess_dword ,
//input :
//n byte to move
//n 字节 ,用于 移动
z_textto1pbyteversiongetfilesize_nbyte_readfromfile_version_infor_functionprocess_dword ,
//input :
//n byte : count : read file
//
//note :
//possible ( include : end : flag ) or ( not include : end : flag )
//n 字节 : 计数 : 读文件
//
//注意 :
//可能 ( 包括 : 结束 : 标志 ) 或者 ( 不包括 : 结束: 标志 )
z_textto1pbyteversiongetfilesize_nbytecontent_readfromfile_version_infor_functionprocess_pbyte
//output :
//n byte : content : read file
//
//note :
//possible ( include : end : flag ) or ( not include : end : flag )
//n 字节 : 内容 : 读文件
//
//注意 :
//可能 ( 包括 : 结束 : 标志 ) 或者 ( 不包括 : 结束: 标志 )
) ;
//read file : n byte
//读 文件 : n 字节

*( z_textto1pbyteversiongetfilesize_1pbyte_output_pbyte + z_textto1pbyteversiongetfilesize_forloopcount_functionprocess_dword ) = *z_textto1pbyteversiongetfilesize_nbytecontent_readfromfile_version_infor_functionprocess_pbyte ;

z_textto1pbyteversiongetfilesize_forloopcount_functionprocess_dword = z_textto1pbyteversiongetfilesize_forloopcount_functionprocess_dword + 1 ;

}

return 0 ;

}






///////
//ZFTEXTTO1PBYTE_VERSION_GETFILESIZE function
//
//text to 1pbyte : get file size
///////
//ZFTEXTTO1PBYTE_VERSION_GETFILESIZE 函数
//
//文本 到 1pbyte : 得到 文件 大小



static PBYTE z_textto1pbyteversiongetfilesize_pathfilenameextension_input_pbyte ;
static DWORD z_textto1pbyteversiongetfilesize_getfilesize_output_dword ;
static PBYTE z_textto1pbyteversiongetfilesize_1pbyte_output_pbyte ;
//static DWORD z_textto1pbyteversiongetfilesize_getfilesize_functionprocess_dword ;
//static PBYTE z_textto1pbyteversiongetfilesize_1pbyte_temp_functionprocess_pbyte ;
static DWORD z_textto1pbyteversiongetfilesize_forloopcount_functionprocess_dword ;
static DWORD z_textto1pbyteversiongetfilesize_nbyte_readfromfile_version_infor_functionprocess_dword ;
static PBYTE z_textto1pbyteversiongetfilesize_nbytecontent_readfromfile_version_infor_functionprocess_pbyte ;









没有评论:

发表评论