📄 cksm_01.cc
字号:
// file: $isip/class/system/Checksum/cksm_01.cc// version: $Id: cksm_01.cc,v 1.4 2000/09/26 23:02:27 picone Exp $//// isip include files//#include "Checksum.h"#include <Console.h>// method: debug//// arguments:// const unichar* msg: (input) message to print//// return: a boolean value indicating status//boolean Checksum::debug(const unichar* msg_a) const { // declare local variables // SysString value; SysString output; // output an information message // output.debugStr(name(), msg_a, L":"); Console::put(output); Console::increaseIndention(); // display the algorithm choice // value.assign((long)algorithm_d); output.debugStr(name(), msg_a, L"algorithm_d", value); Console::put(output); // display the implementation name // value.assign((long)implementation_d); output.debugStr(name(), msg_a, L"implementation_d", value); Console::put(output); // display the current checksum // value.assign((ulong)cksum_d); output.debugStr(name(), msg_a, L"cksum_d", value); Console::put(output); // display is_valid_d // value.assign((long)is_valid_d); output.debugStr(name(), msg_a, L"is_valid_d", value); Console::put(output); // display the table // output.debugStr(name(), msg_a, L"crc_table_d", L""); Console::put(output); Console::increaseIndention(); for (long i = 0; i < CRC_TABLE_LENGTH; i++) { value.assign((ulong)crc_table_d[i]); output.debugStr(name(), msg_a, L"crc_table_d", value); Console::put(output); } Console::decreaseIndention(); // exit gracefully // return true;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -