示例#1
0
 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));
     }
 }
示例#2
0
        public unsafe static ushort Strmake_StrSubstring(byte *buf, ref PosLaction bufpos, string val, byte starmod)
        {
            byte[] array = Kuozhan.Gethebingbytes(val.GetbytesssASCII(), "".GetbytesssASCII(1));
            ushort result;

            fixed(PosLaction *ptr = &bufpos)
            {
                fixed(byte *ptr2 = array)
                {
                    result = Strmake.Strmake_StrSubstring(buf, ptr, ptr2, starmod);
                }
            }

            return(result);
        }