示例#1
0
        public UniString(string value)
        {
            unmanagedContainer = new nsStringContainer();
            IntPtr p = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(nsStringContainer)));

            Marshal.StructureToPtr(unmanagedContainer, p, false);
            handle = new HandleRef(typeof(nsStringContainer), p);
            Base.gluezilla_StringContainerInit(handle);
            String = value;
        }