Example #1
0
        public unsafe bool Equals(SmallString4 rhs)
        {
            byte *m = rhs.payload_;

            fixed(byte *n = payload_)
            return(SmallStringMethods.Equals(n, m, MaxLength));
        }
Example #2
0
        /* Implements the same order as in D */
        public unsafe int CompareTo(SmallString128 rhs)
        {
            byte *m = rhs.payload_;

            fixed(byte *n = payload_)
            return(SmallStringMethods.Compare(n, m, MaxLength));
        }
Example #3
0
 public static unsafe bool TryConvert(string value, out SmallString128 s)
 {
     fixed(byte *n = s.payload_)
     return(SmallStringMethods.TryFromString(n, MaxLength, value));
 }
Example #4
0
 public unsafe SmallString128(string value)
 {
     fixed(byte *n = payload_)
     SmallStringMethods.FromString(n, MaxLength, value);
 }