//音标序列化
charByetes=Encoding.UTF8.GetBytes(oneEWord.PhoneticSymbol);
oneEWord.lenPhnSym=charByetes.Length;
Array.Copy(charByetes, 0, charBuf, oneEWord.lenEn+12, oneEWord.lenPhnSym);
Array.Copy(charByetes, 0, charBuf, 4, 4);
参数定义:
byte[] charByetes;
byte[] charBuf=new byte[1000];
EnWord oneEWord;
public class EnWord
{
public int lenEn; //英文占据的字节长度
public string eWord;//英文单词
public int lenPhnSym;//音标占据的字节长度
public string PhoneticSymbol;//音标
public int lenChChar;//中文占据的字节长度
public string ChineseChar;//中文解释
}
调用堆栈:
> Server.exe!Server.EnWordData.StringToEnWord(string fileName) 行 88 C#
Server.exe!Server.Program.Main() 行 23 C#
[外部代码]