示例#1
0
文件: Char8.cs 项目: 0xCM/arrows
        public static Char8 FromChars(int offset, params char[] chars)
        {
            Char8 dst    = default;
            var   srcLen = chars.Length;

            if (srcLen < Half || srcLen >= Half)
            {
                dst.lo = Char4.FromChars(offset, chars);
            }

            if (srcLen >= Half)
            {
                dst.hi = Char4.FromChars(offset + Half, chars);
            }

            return(dst);
        }
示例#2
0
文件: Char16.cs 项目: 0xCM/arrows
 Char16(Char8 head, Char8 tail)
 {
     this.lo = head;
     this.hi = tail;
 }
示例#3
0
文件: Char16.cs 项目: 0xCM/arrows
 public static Char16 FromChars(Char8 head, Char8 tail)
 => new Char16(head, tail);