public unsafe static byte Strmake_Makestr(byte *v1, string str, byte lenth) { byte[] array = str.GetbytesssASCII(); array = Kuozhan.Gethebingbytes(array, "".GetbytesssASCII(1)); fixed(byte *ptr = array) { return(Strmake.Strmake_Makestr(v1, ptr, lenth)); } }
private unsafe static int Lstrbyteaddstring(byte[] b, bool biaoji) { strxinxi item = default(strxinxi); if (dataput.bianyi == 1 && biaoji) { fixed(byte *ptr = b) { if (b.Length > 5) { if (Strmake.Strmake_Makestr(ptr, "LcCL ", 5) == 1) { string[] array = b.Getstring(datasize.Myencoding).Split(new char[] { ' ' }); if (array.Length == 3) { if (array[1] == "L") { dataput.LcCL_L.Add(new LcCL_type { strbytesid = dataput.strbytes.Count, biaoji = array[2] }); b = (array[1] + " ").GetbytesssASCII(); } else if (array[1] == "S") { dataput.LcCL_S.Add(new LcCL_type { strbytesid = dataput.strbytes.Count, biaoji = array[2] }); b = (array[1] + " " + array[2]).GetbytesssASCII(); } } } } } } item.size = (ushort)b.Length; item.addbeg = (uint)dataput.strdatasize; dataput.strxinxis.Add(item); dataput.strbytes.Add(b); dataput.strdatasize += b.Length; return(dataput.strxinxis.Count - 1); }