首页
社区
课程
招聘
见识广的兄弟帮我识别一段代码
发表于: 2005-12-6 00:43 3790

见识广的兄弟帮我识别一段代码

2005-12-6 00:43
3790
    

size=2[color=#008000];[/color]
while(len=len/2) size=size*2[color=#008000];[/color]

    [color=#0000D0]MOV[/color] [color=#b000b0]DWORD[/color] [color=#b000b0]PTR[/color] [color=#FF0000]DS[/color]:[[color=#FF0000]ESI[/color]+C], 2					[color=#008000];this->size=2[/color]
    [color=#0000D0]SHR[/color] [color=#FF0000]EAX[/color], 1									[color=#008000];eax=len[/color]
    [color=#0000D0]JE[/color] L1
L2: [color=#0000D0]MOV[/color] [color=#FF0000]EDX[/color], [color=#b000b0]DWORD[/color] [color=#b000b0]PTR[/color] [color=#FF0000]DS[/color]:[[color=#FF0000]ESI[/color]+C]
    [color=#0000D0]SHL[/color] [color=#FF0000]EDX[/color], 1
    [color=#0000D0]SHR[/color] [color=#FF0000]EAX[/color], 1
    [color=#0000D0]MOV[/color] [color=#b000b0]DWORD[/color] [color=#b000b0]PTR[/color] [color=#FF0000]DS[/color]:[[color=#FF0000]ESI[/color]+C], [color=#FF0000]EDX[/color]
    [color=#0000D0]JNZ[/color] L2
L1: [color=#0000D0]MOV[/color] [color=#FF0000]EAX[/color], [color=#b000b0]DWORD[/color] [color=#b000b0]PTR[/color] [color=#FF0000]DS[/color]:[[color=#FF0000]ESI[/color]+C]				
    [color=#0000D0]PUSH[/color] [color=#FF0000]EAX[/color]                                    [color=#008000]; /size[/color]
    [color=#0000D0]PUSH[/color] [color=#FF0000]EBP[/color]                                    [color=#008000]; |block[/color]
    [color=#0000D0]CALL[/color] [color=#b000b0]DWORD[/color] [color=#b000b0]PTR[/color] [color=#FF0000]DS[/color]:[<&MSVCRT.realloc>]       [color=#008000]; \realloc[/color]
    [color=#0000D0]ADD[/color] [color=#FF0000]ESP[/color], 8
    [color=#0000D0]MOV[/color] [color=#b000b0]DWORD[/color] [color=#b000b0]PTR[/color] [color=#FF0000]DS[/color]:[[color=#FF0000]ESI[/color]+4], [color=#FF0000]EAX[/color]
    [color=#0000D0]MOV[/color] [color=#b000b0]DWORD[/color] [color=#b000b0]PTR[/color] [color=#FF0000]DS[/color]:[[color=#FF0000]ESI[/color]+8], [color=#FF0000]EAX[/color]

经常看到这么一段,自动管理内存,功能大概是这样的CBuffer(char *buf,int len)
请问这一段是不是来自标准库里面?
能否提供一个类似此功能的Buffer类给我参考,谢谢~!

[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 198
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
Linux内核结构常看见...我不认识他,他不认识我....

哎~.....

去微软查查:■■点击此处■■

找找!!!!!!
2005-12-6 02:02
0
游客
登录 | 注册 方可回帖
返回
//